3b3b1c5ea20f4b1818c0c20f842e257e787e93e6
[zzz-floof.git] / floof / model / meta.py
1 """SQLAlchemy Metadata and Session object"""
2 from sqlalchemy import MetaData
3 from sqlalchemy.orm import scoped_session, sessionmaker
4
5 __all__ = ['Session', 'engine', 'metadata']
6
7 # SQLAlchemy database engine. Updated by model.init_model()
8 engine = None
9
10 # SQLAlchemy session manager. Updated by model.init_model()
11 Session = scoped_session(sessionmaker())
12
13 metadata = MetaData()
14