示例#1
0
def init_db(config, log):
    settings = config.get_settings()
    db_file = settings.get('db_filename')

    DbSessionFactory.global_init(db_file)
    log.info('Configured DB with Sqlite file: {}.'.format(db_file))
def init_db(config):
    settings = config.get_settings()
    db_file = settings.get('db_filename')

    DbSessionFactory.global_init(db_file)