source:
package_tags/sipb-xen-database/10.25/python/database/__init__.py
Last change on this file was 991, checked in by price, 16 years ago | |
---|---|
File size: 262 bytes |
Line | |
---|---|
1 | from invirt.config import structs as config |
2 | from models import * |
3 | import sqlalchemy |
4 | |
5 | def connect(uri = config.db.uri): |
6 | """ Connect to a given database URI""" |
7 | engine = sqlalchemy.create_engine(uri) |
8 | meta.bind = engine |
9 | session.configure(bind=engine) |
Note: See TracBrowser
for help on using the repository browser.