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