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

Method _maker_context_manager

lib/sqlalchemy/orm/session.py:1817–1820  ·  view source on GitHub ↗
(self: _S)

Source from the content-addressed store, hash-verified

1815
1816 @contextlib.contextmanager
1817 def _maker_context_manager(self: _S) -> Iterator[_S]:
1818 with self:
1819 with self.begin():
1820 yield self
1821
1822 def in_transaction(self) -> bool:
1823 """Return True if this :class:`_orm.Session` has begun a transaction.

Callers 1

beginMethod · 0.45

Calls 1

beginMethod · 0.95

Tested by

no test coverage detected