Exit the transaction or savepoint block and rollback changes.
(self)
| 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 = [] |