MCPcopy
hub / github.com/psycopg/psycopg / commit

Method commit

psycopg/psycopg/connection.py:302–305  ·  view source on GitHub ↗

Commit any pending transaction to the database.

(self)

Source from the content-addressed store, hash-verified

300 raise ex.with_traceback(None)
301
302 def commit(self) -> None:
303 """Commit any pending transaction to the database."""
304 with self.lock:
305 self.wait(self._commit_gen())
306
307 def rollback(self) -> None:
308 """Roll back to the start of any pending transaction."""

Callers 1

__exit__Method · 0.95

Calls 2

waitMethod · 0.95
_commit_genMethod · 0.45

Tested by

no test coverage detected