MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / reinit_db

Function reinit_db

db_manager.py:2759–2764  ·  view source on GitHub ↗

Reinitialize the singleton database instance. Used after decrypting the DB file.

(currentdir: str = None)

Source from the content-addressed store, hash-verified

2757 _db_instance = DatabaseManager(currentdir=currentdir)
2758
2759 return _db_instance
2760
2761
2762def close_db():
2763 """Close the singleton database instance. Used before encrypting the DB file."""
2764 global _db_instance
2765 with _db_lock:
2766 _db_instance = None
2767

Callers 1

_reinit_dbMethod · 0.90

Calls 1

DatabaseManagerClass · 0.85

Tested by

no test coverage detected