MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / rollback_twophase

Method rollback_twophase

lib/sqlalchemy/engine/events.py:597–607  ·  view source on GitHub ↗

Intercept rollback_twophase() events. :param conn: :class:`_engine.Connection` object :param xid: two-phase XID identifier :param is_prepared: boolean, indicates if :meth:`.TwoPhaseTransaction.prepare` was called.

(
        self, conn: Connection, xid: Any, is_prepared: bool
    )

Source from the content-addressed store, hash-verified

595 """
596
597 def rollback_twophase(
598 self, conn: Connection, xid: Any, is_prepared: bool
599 ) -> None:
600 """Intercept rollback_twophase() events.
601
602 :param conn: :class:`_engine.Connection` object
603 :param xid: two-phase XID identifier
604 :param is_prepared: boolean, indicates if
605 :meth:`.TwoPhaseTransaction.prepare` was called.
606
607 """
608
609 def commit_twophase(
610 self, conn: Connection, xid: Any, is_prepared: bool

Calls

no outgoing calls