()
| 686 | self._unload_context(self._ctx) |
| 687 | |
| 688 | def rollback(): |
| 689 | # do db rollback and release the connection if pooling is enabled. |
| 690 | ctx.db.rollback() |
| 691 | if self.has_pooling: |
| 692 | self._unload_context(self._ctx) |
| 693 | |
| 694 | ctx.commit = commit |
| 695 | ctx.rollback = rollback |