MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / in_nested_transaction

Method in_nested_transaction

lib/sqlalchemy/orm/session.py:1876–1883  ·  view source on GitHub ↗

Return True if this :class:`_orm.Session` has begun a nested transaction, e.g. SAVEPOINT. .. versionadded:: 1.4

(self)

Source from the content-addressed store, hash-verified

1874 return self._transaction is not None
1875
1876 def in_nested_transaction(self) -> bool:
1877 """Return True if this :class:`_orm.Session` has begun a nested
1878 transaction, e.g. SAVEPOINT.
1879
1880 .. versionadded:: 1.4
1881
1882 """
1883 return self._nested_transaction is not None
1884
1885 def get_transaction(self) -> Optional[SessionTransaction]:
1886 """Return the current root transaction in progress, if any.

Callers 5

_connection_for_bindMethod · 0.45
end_savepointMethod · 0.45

Calls

no outgoing calls

Tested by 3

end_savepointMethod · 0.36