MCPcopy
hub / github.com/spaceandtimefdn/SxT-Python-SDK / sql_dql

Method sql_dql

src/spaceandtime/sxtbaseapi.py:646–660  ·  view source on GitHub ↗

-------------------- **deprecated** -- now simply calls sql_exec. Args: sql_text (str): SQL query text to execute. Note, there is NO placeholder replacement. resources (list): ** ignored / unneeded ** biscuits (list): (optional) List of biscuit

(self, sql_text:str, resources:list, biscuits:list = None, app_name:str = None)

Source from the content-addressed store, hash-verified

644
645
646 def sql_dql(self, sql_text:str, resources:list, biscuits:list = None, app_name:str = None):
647 """--------------------
648 **deprecated** -- now simply calls sql_exec.
649
650 Args:
651 sql_text (str): SQL query text to execute. Note, there is NO placeholder replacement.
652 resources (list): ** ignored / unneeded **
653 biscuits (list): (optional) List of biscuit tokens for permissioned tables. If only querying public tables, this is not needed.
654 app_name (str): (optional) Name that will appear in querylog, used for bucketing workload.
655
656 Returns:
657 bool: Success flag (True/False) indicating the api call worked as expected.
658 object: Response information from the Space and Time network, as list or dict(json).
659 """
660 return self.sql_exec(sql_text=sql_text, biscuits=biscuits, app_name=app_name)
661
662
663 def sql_exec_tamperproof(self, sql_text:str, biscuits:list = None):

Callers 2

selectMethod · 0.80
execute_queryMethod · 0.80

Calls 1

sql_execMethod · 0.95

Tested by

no test coverage detected