]> asedeno.scripts.mit.edu Git - bluechips.git/blob - bluechips/model/meta.py
Create Pylons app
[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 __all__ = ['Session', '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 = None
12
13 # Global metadata. If you have multiple databases with overlapping table
14 # names, you'll need a metadata for each database
15 metadata = MetaData()