MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _commit_twophase_impl

Method _commit_twophase_impl

lib/sqlalchemy/engine/base.py:1227–1235  ·  view source on GitHub ↗
(self, xid: Any, is_prepared: bool)

Source from the content-addressed store, hash-verified

1225 self._handle_dbapi_exception(e, None, None, None, None)
1226
1227 def _commit_twophase_impl(self, xid: Any, is_prepared: bool) -> None:
1228 if self._has_events or self.engine._has_events:
1229 self.dispatch.commit_twophase(self, xid, is_prepared)
1230
1231 assert isinstance(self._transaction, TwoPhaseTransaction)
1232 try:
1233 self.engine.dialect.do_commit_twophase(self, xid, is_prepared)
1234 except BaseException as e:
1235 self._handle_dbapi_exception(e, None, None, None, None)
1236
1237 def close(self) -> None:
1238 """Close this :class:`_engine.Connection`.

Callers 1

Calls 3

commit_twophaseMethod · 0.80
do_commit_twophaseMethod · 0.45

Tested by

no test coverage detected