예제 #1
0
파일: utils.py 프로젝트: KongJustin/senlin
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()
예제 #2
0
파일: utils.py 프로젝트: KongJustin/senlin
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()
예제 #3
0
파일: manage.py 프로젝트: epim/senlin
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)
예제 #4
0
파일: manage.py 프로젝트: tengqm/senlin
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)
예제 #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)