MCPcopy
hub / github.com/psycopg/psycopg / tpc_commit

Method tpc_commit

psycopg/psycopg/connection.py:545–550  ·  view source on GitHub ↗

Commit a prepared two-phase transaction.

(self, xid: Xid | str | None = None)

Source from the content-addressed store, hash-verified

543 raise e.NotSupportedError(str(ex)) from None
544
545 def tpc_commit(self, xid: Xid | str | None = None) -> None:
546 """
547 Commit a prepared two-phase transaction.
548 """
549 with self.lock:
550 self.wait(self._tpc_finish_gen("COMMIT", xid))
551
552 def tpc_rollback(self, xid: Xid | str | None = None) -> None:
553 """

Calls 2

waitMethod · 0.95
_tpc_finish_genMethod · 0.80