def close_db(db_name): _Pool.close_all(dsn(db_name)) Agent.cancel(db_name) tools.cache.clean_caches_for_db(db_name) ct = currentThread() if hasattr(ct, 'dbname'): delattr(ct, 'dbname')
def close_db(db_name): _Pool.close_all(dsn(db_name)) Agent.cancel(db_name) tools.cache.clean_caches_for_db(db_name) ct = currentThread() if hasattr(ct, 'dbname'): delattr(ct, 'dbname')
def close_db(db_name): _Pool.close_all(dsn(db_name)) Agent.cancel(db_name) tools.cache.clean_caches_for_db(db_name)