MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / execute_insert

Method execute_insert

tortoise/backends/base/client.py:195–204  ·  view source on GitHub ↗

Executes a RAW SQL insert statement, with provided parameters. :param query: The SQL string, pre-parametrized for the target DB dialect. :param values: A sequence of positional DB parameters. :return: The primary key if it is generated by the DB. (Curren

(self, query: str, values: list)

Source from the content-addressed store, hash-verified

193 raise NotImplementedError() # pragma: nocoverage
194
195 async def execute_insert(self, query: str, values: list) -> Any:
196 """
197 Executes a RAW SQL insert statement, with provided parameters.
198
199 :param query: The SQL string, pre-parametrized for the target DB dialect.
200 :param values: A sequence of positional DB parameters.
201 :return: The primary key if it is generated by the DB.
202 (Currently only integer autonumber PK's)
203 """
204 raise NotImplementedError() # pragma: nocoverage
205
206 async def execute_query(
207 self, query: str, values: list | None = None

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected