source: trunk/packages/sipb-xen-database/python/database/__init__.py @ 884

Last change on this file since 884 was 829, checked in by price, 16 years ago

get db uri from invirt.config in sipb-database

File size: 165 bytes
Line 
1from invirt.config import structs as config
2from models import *
3
4def connect(uri = config.db.uri):
5    """ Connect to a given database URI"""
6    meta.connect(uri)
Note: See TracBrowser for help on using the repository browser.