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

Method begin

tortoise/backends/sqlite/client.py:237–242  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

235 await connection.executemany(query, values)
236
237 async def begin(self) -> None:
238 try:
239 await self._connection.commit()
240 await self._connection.execute("BEGIN")
241 except sqlite3.OperationalError as exc: # pragma: nocoverage
242 raise TransactionManagementError(exc)
243
244 async def rollback(self) -> None:
245 if self._finalized:

Callers 1

__aenter__Method · 0.45

Calls 2

commitMethod · 0.45

Tested by

no test coverage detected