MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / commit

Method commit

asyncpg/transaction.py:214–219  ·  view source on GitHub ↗

Exit the transaction or savepoint block and commit changes.

(self)

Source from the content-addressed store, hash-verified

212
213 @connresource.guarded
214 async def commit(self):
215 """Exit the transaction or savepoint block and commit changes."""
216 if self._managed:
217 raise apg_errors.InterfaceError(
218 'cannot manually commit from within an `async with` block')
219 await self.__commit()
220
221 @connresource.guarded
222 async def rollback(self):

Callers 1

Calls 1

__commitMethod · 0.95

Tested by 1