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

Method execute_insert

tortoise/backends/asyncpg/client.py:109–113  ·  view source on GitHub ↗
(self, query: str, values: list)

Source from the content-addressed store, hash-verified

107
108 @translate_exceptions
109 async def execute_insert(self, query: str, values: list) -> asyncpg.Record | None:
110 async with self.acquire_connection() as connection:
111 self.log.debug("%s: %s", query, values)
112 # TODO: Cache prepared statement
113 return await connection.fetchrow(query, *values)
114
115 @translate_exceptions
116 async def execute_many(self, query: str, values: list) -> None:

Callers

nothing calls this directly

Calls 1

acquire_connectionMethod · 0.45

Tested by

no test coverage detected