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

Method __exit__

web/db.py:614–618  ·  view source on GitHub ↗
(self, exctype, excvalue, traceback)

Source from the content-addressed store, hash-verified

612 return self
613
614 def __exit__(self, exctype, excvalue, traceback):
615 if exctype is not None:
616 self.rollback()
617 else:
618 self.commit()
619
620 def commit(self):
621 if len(self.ctx.transactions) > self.transaction_count:

Callers

nothing calls this directly

Calls 2

rollbackMethod · 0.95
commitMethod · 0.95

Tested by

no test coverage detected