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

Class transaction_engine

web/db.py:565–575  ·  view source on GitHub ↗

Transaction Engine used in top level transactions.

Source from the content-addressed store, hash-verified

563 self.transaction_count = transaction_count = len(ctx.transactions)
564
565 class transaction_engine:
566 """Transaction Engine used in top level transactions."""
567
568 def do_transact(self):
569 ctx.commit(unload=False)
570
571 def do_commit(self):
572 ctx.commit()
573
574 def do_rollback(self):
575 ctx.rollback()
576
577 class subtransaction_engine:
578 """Transaction Engine used in sub transactions."""

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected