MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _begin_twophase_impl

Method _begin_twophase_impl

lib/sqlalchemy/engine/base.py:1190–1202  ·  view source on GitHub ↗
(self, transaction: TwoPhaseTransaction)

Source from the content-addressed store, hash-verified

1188 self.engine.dialect.do_release_savepoint(self, name)
1189
1190 def _begin_twophase_impl(self, transaction: TwoPhaseTransaction) -> None:
1191 if self._echo:
1192 self._log_info("BEGIN TWOPHASE (implicit)")
1193 if self._has_events or self.engine._has_events:
1194 self.dispatch.begin_twophase(self, transaction.xid)
1195
1196 self.__in_begin = True
1197 try:
1198 self.engine.dialect.do_begin_twophase(self, transaction.xid)
1199 except BaseException as e:
1200 self._handle_dbapi_exception(e, None, None, None, None)
1201 finally:
1202 self.__in_begin = False
1203
1204 def _prepare_twophase_impl(self, xid: Any) -> None:
1205 if self._has_events or self.engine._has_events:

Callers 1

Calls 4

_log_infoMethod · 0.95
begin_twophaseMethod · 0.45
do_begin_twophaseMethod · 0.45

Tested by

no test coverage detected