

def init_db(db_url):
    db_url = URL(db_url)
    (DB, migrator) = DB_ENGINES.get(db_url.scheme, (lambda x: log.fatal('Unable to fund database driver')))(db_url)
    DB.create_tables([Migrations], safe=True)
    migrate_db(DB, Migrations, migrator)

dataset/ETHPy150Open mosquito/pypi-server/pypi_server/db/__init__.py init_db/original