def setup_dummy_db(): options.cfg.set_defaults(options.database_opts, sqlite_synchronous=False) options.set_defaults(cfg.CONF, connection="sqlite://", sqlite_db='senlin.db') engine = get_engine() db_api.db_sync(engine) engine.connect()
def do_db_sync(): """Place a database under migration control and upgrade. DB is created first if necessary. """ api.db_sync(api.get_engine(), CONF.command.version)
def do_db_sync(): """Place a database under migration control and upgrade, creating first if necessary. """ api.db_sync(api.get_engine(), CONF.command.version)
def do_db_sync(): '''Place a database under migration control and upgrade. DB is created first if necessary. ''' api.db_sync(api.get_engine(), CONF.command.version)