MCPcopy Create free account
hub / github.com/webpy/webpy / rollback

Method rollback

web/db.py:625–628  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

623 self.ctx.transactions = self.ctx.transactions[: self.transaction_count]
624
625 def rollback(self):
626 if len(self.ctx.transactions) > self.transaction_count:
627 self.engine.do_rollback()
628 self.ctx.transactions = self.ctx.transactions[: self.transaction_count]
629
630
631class DB:

Callers 1

__exit__Method · 0.95

Calls 1

do_rollbackMethod · 0.45

Tested by

no test coverage detected