MCPcopy Index your code
hub / github.com/tortoise/tortoise-orm / execute_many

Method execute_many

tortoise/backends/sqlite/client.py:135–146  ·  view source on GitHub ↗
(self, query: str, values: list[list])

Source from the content-addressed store, hash-verified

133
134 @translate_exceptions
135 async def execute_many(self, query: str, values: list[list]) -> None:
136 async with self.acquire_connection() as connection:
137 self.log.debug("%s: %s", query, values)
138 # This code is only ever called in AUTOCOMMIT mode
139 await connection.execute("BEGIN")
140 try:
141 await connection.executemany(query, values)
142 except Exception:
143 await connection.rollback()
144 raise
145 else:
146 await connection.commit()
147
148 @translate_exceptions
149 async def execute_query(

Callers

nothing calls this directly

Calls 3

acquire_connectionMethod · 0.95
rollbackMethod · 0.45
commitMethod · 0.45

Tested by

no test coverage detected