MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / in_transaction

Method in_transaction

lib/sqlalchemy/engine/base.py:1051–1053  ·  view source on GitHub ↗

Return True if a transaction is in progress.

(self)

Source from the content-addressed store, hash-verified

1049 self.engine.dialect.do_commit_twophase(self, xid, recover=recover)
1050
1051 def in_transaction(self) -> bool:
1052 """Return True if a transaction is in progress."""
1053 return self._transaction is not None and self._transaction.is_active
1054
1055 def in_nested_transaction(self) -> bool:
1056 """Return True if a transaction is in progress."""

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected