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

Method rollback

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

Source from the content-addressed store, hash-verified

242 raise TransactionManagementError(exc)
243
244 async def rollback(self) -> None:
245 if self._finalized:
246 raise TransactionManagementError("Transaction already finalised")
247 await self._connection.rollback()
248 self._finalized = True
249
250 async def commit(self) -> None:
251 if self._finalized:

Callers 2

execute_manyMethod · 0.45
__aexit__Method · 0.45

Calls 1

Tested by

no test coverage detected