Exemple #1
0
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()
Exemple #2
0
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()
Exemple #3
0
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)
Exemple #4
0
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)
Exemple #5
0
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)