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

Method commit

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

Source from the content-addressed store, hash-verified

194 self._connection._conn.autocommit = False
195
196 async def commit(self) -> None:
197 if self._finalized:
198 raise TransactionManagementError("Transaction already finalised")
199 await self._connection.commit()
200 self._finalized = True
201 self._connection._conn.autocommit = True
202
203 async def rollback(self) -> None:
204 if self._finalized:

Callers 1

execute_manyMethod · 0.45

Calls 1

Tested by

no test coverage detected