MCPcopy
hub / github.com/tortoise/tortoise-orm / execute_query

Method execute_query

tortoise/backends/base/client.py:206–216  ·  view source on GitHub ↗

Executes a RAW SQL query statement, and returns the resultset. :param query: The SQL string, pre-parametrized for the target DB dialect. :param values: A sequence of positional DB parameters. :return: A tuple of: (The number of rows affected, The resultset)

(
        self, query: str, values: list | None = None
    )

Source from the content-addressed store, hash-verified

204 raise NotImplementedError() # pragma: nocoverage
205
206 async def execute_query(
207 self, query: str, values: list | None = None
208 ) -> tuple[int, Sequence[dict]]:
209 """
210 Executes a RAW SQL query statement, and returns the resultset.
211
212 :param query: The SQL string, pre-parametrized for the target DB dialect.
213 :param values: A sequence of positional DB parameters.
214 :return: A tuple of: (The number of rows affected, The resultset)
215 """
216 raise NotImplementedError() # pragma: nocoverage
217
218 async def execute_script(self, query: str) -> None:
219 """

Callers 7

execute_explainMethod · 0.45
execute_selectMethod · 0.45
execute_updateMethod · 0.45
execute_deleteMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected