MCPcopy Index your code
hub / github.com/webpy/webpy / rollback

Method rollback

web/db.py:688–692  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 4

testRollbackMethod · 0.45
do_rollbackMethod · 0.45
_db_executeMethod · 0.45

Calls 1

_unload_contextMethod · 0.95

Tested by 2

testRollbackMethod · 0.36