Exit the transaction or savepoint block and commit changes.
(self)
| 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): |