

def get_db_filename(engine):
    "For the input SqlAlchemy engine, return a string name suitable for\n    creating an sqlite database to store the engine's ipydb metadata.\n    "
    url = engine.url
    url = str(URL(url.drivername, url.username, host=url.host, port=url.port, database=url.database))
    return str(base64.urlsafe_b64encode(url.encode('utf-8')))

dataset/ETHPy150Open jaysw/ipydb/ipydb/metadata/__init__.py get_db_filename/original