(unload=True)
| 680 | ctx.db.rollback = lambda: None |
| 681 | |
| 682 | def commit(unload=True): |
| 683 | # do db commit and release the connection if pooling is enabled. |
| 684 | ctx.db.commit() |
| 685 | if unload and self.has_pooling: |
| 686 | self._unload_context(self._ctx) |
| 687 | |
| 688 | def rollback(): |
| 689 | # do db rollback and release the connection if pooling is enabled. |