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

Method sql_ddl

src/spaceandtime/sxtbaseapi.py:613–626  ·  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. biscuits (list): (optional) List of biscuit tokens for permissioned tables. If only querying public

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

Source from the content-addressed store, hash-verified

611
612
613 def sql_ddl(self, sql_text:str, biscuits:list = None, app_name:str = None):
614 """--------------------
615 **deprecated** -- now simply calls sql_exec.
616
617 Args:
618 sql_text (str): SQL query text to execute. Note, there is NO placeholder replacement.
619 biscuits (list): (optional) List of biscuit tokens for permissioned tables. If only querying public tables, this is not needed.
620 app_name (str): (optional) Name that will appear in querylog, used for bucketing workload.
621
622 Returns:
623 bool: Success flag (True/False) indicating the api call worked as expected.
624 object: Response information from the Space and Time network, as list or dict(json).
625 """
626 return self.sql_exec(sql_text=sql_text, biscuits=biscuits, app_name=app_name)
627
628
629 def sql_dml(self, sql_text:str, resources:list, biscuits:list = None, app_name:str = None):

Callers 3

createMethod · 0.80
dropMethod · 0.80
execute_queryMethod · 0.80

Calls 1

sql_execMethod · 0.95

Tested by

no test coverage detected