]> asedeno.scripts.mit.edu Git - bluechips.git/blob - bluechips/model/meta.py
Change the repr of Splits to match the new db structure.
[bluechips.git] / bluechips / model / meta.py
1 """SQLAlchemy Metadata and Session object"""
2 from sqlalchemy import MetaData
3 from sqlalchemy.orm import scoped_session, sessionmaker
4
5 # SQLAlchemy database engine.  Updated by model.init_model()
6 engine = None
7
8 # SQLAlchemy session manager.  Updated by model.init_model()
9 Session = None
10
11 # Global metadata. If you have multiple databases with overlapping table
12 # names, you'll need a metadata for each database
13 metadata = MetaData()
14
15 __all__ = ['engine', 'Session', 'metadata']