MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __enter__

Method __enter__

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

Source from the content-addressed store, hash-verified

1849 connection_callable: Optional[_ConnectionCallableProto] = None
1850
1851 def __enter__(self: _S) -> _S:
1852 return self
1853
1854 def __exit__(self, type_: Any, value: Any, traceback: Any) -> None:
1855 self.close()

Callers 4

_aenter_cursorMethod · 0.45
run_as_contextmanagerFunction · 0.45
pytest_runtest_setupFunction · 0.45

Calls

no outgoing calls

Tested by 1

pytest_runtest_setupFunction · 0.36