Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/sqlalchemy/sqlalchemy
/ session_factory
Function
session_factory
test/typing/plain_files/orm/sessionmakers.py:63–66 ·
view source on GitHub ↗
( engine: Engine, )
Source
from the content-addressed store, hash-verified
61
62
63
def
session_factory(
64
engine: Engine,
65
) -> sessionmaker[MySession]:
66
return
sessionmaker(engine, class_=MySession)
67
68
69
def
scoped_session_factory(engine: Engine) -> scoped_session[MySession]:
Callers
1
main
Function · 0.85
Calls
1
sessionmaker
Class · 0.90
Tested by
no test coverage detected