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

Method commit

web/db.py:682–686  ·  view source on GitHub ↗
(unload=True)

Source from the content-addressed store, hash-verified

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.

Callers 9

testCommitMethod · 0.45
do_transactMethod · 0.45
do_commitMethod · 0.45
queryMethod · 0.45
insertMethod · 0.45
multiple_insertMethod · 0.45
updateMethod · 0.45
deleteMethod · 0.45

Calls 1

_unload_contextMethod · 0.95

Tested by 2

testCommitMethod · 0.36