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

Method commit

tortoise/backends/asyncpg/client.py:201–207  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

199 return await self.begin()
200
201 async def commit(self) -> None:
202 if not self.transaction:
203 raise TransactionManagementError("Transaction is in invalid state")
204 if self._finalized:
205 raise TransactionManagementError("Transaction already finalised")
206 await self.transaction.commit()
207 self._finalized = True
208
209 async def release_savepoint(self) -> None:
210 return await self.commit()

Callers 2

release_savepointMethod · 0.95
execute_manyMethod · 0.45

Calls 1

Tested by

no test coverage detected