MCPcopy
hub / github.com/MagicStack/asyncpg / rollback

Method rollback

asyncpg/transaction.py:222–227  ·  view source on GitHub ↗

Exit the transaction or savepoint block and rollback changes.

(self)

Source from the content-addressed store, hash-verified

220
221 @connresource.guarded
222 async def rollback(self):
223 """Exit the transaction or savepoint block and rollback changes."""
224 if self._managed:
225 raise apg_errors.InterfaceError(
226 'cannot manually rollback from within an `async with` block')
227 await self.__rollback()
228
229 def __repr__(self):
230 attrs = []

Callers 6

lockerMethod · 0.80
explainMethod · 0.80

Calls 1

__rollbackMethod · 0.95