Last change
on this file since 974 was
946,
checked in by price, 16 years ago
|
port sipb-xen-database to sqlalchemy-0.4
Apparently they like breaking old interfaces (e.g. DynamicMetaData?,
sqlalchemy.create_session, sqlalchemy.relation) when they add new ones.
Also letting other old interfaces (e.g. meta.connect) bitrot even
while still present.
|
File size:
207 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 | meta.bind = sqlalchemy.create_engine(uri) |
---|
Note: See
TracBrowser
for help on using the repository browser.