def get_db_filename(engine):
    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')))
Save state to file, then unlock and close it.
dataset/ETHPy150Open jaysw/ipydb/ipydb/metadata/__init__.py/get_db_filename--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/watcher/state.py/WatcherState.Save