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

Method sql_dml

src/spaceandtime/sxtbaseapi.py:629–643  ·  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

627
628
629 def sql_dml(self, sql_text:str, resources:list, biscuits:list = None, app_name:str = None):
630 """--------------------
631 **deprecated** -- now simply calls sql_exec.
632
633 Args:
634 sql_text (str): SQL query text to execute. Note, there is NO placeholder replacement.
635 resources (list): ** ignored / unneeded **
636 biscuits (list): (optional) List of biscuit tokens for permissioned tables. If only querying public tables, this is not needed.
637 app_name (str): (optional) Name that will appear in querylog, used for bucketing workload.
638
639 Returns:
640 bool: Success flag (True/False) indicating the api call worked as expected.
641 object: Response information from the Space and Time network, as list or dict(json).
642 """
643 return self.sql_exec(sql_text=sql_text, biscuits=biscuits, app_name=app_name)
644
645
646 def sql_dql(self, sql_text:str, resources:list, biscuits:list = None, app_name:str = None):

Callers 4

with_sqltextMethod · 0.80
with_sqltextMethod · 0.80
deleteMethod · 0.80
execute_queryMethod · 0.80

Calls 1

sql_execMethod · 0.95

Tested by

no test coverage detected