MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _maker_context_manager

Method _maker_context_manager

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

Source from the content-addressed store, hash-verified

1856
1857 @contextlib.contextmanager
1858 def _maker_context_manager(self: _S) -> Iterator[_S]:
1859 with self:
1860 with self.begin():
1861 yield self
1862
1863 def in_transaction(self) -> bool:
1864 """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