productionsystem.sql.registry module¶
SQLAlchemy global session registry.
-
class
productionsystem.sql.registry.SessionRegistry(url)¶ Bases:
sqlalchemy.orm.scoping.scoped_sessionSingleton version of SQLAlchemy’s scoped_session.
This avoids the need to make the scoped_session (session registry) global
-
productionsystem.sql.registry.managed_session(*args, **kwds)¶ Transactional scoped DB session context.