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

Function close_db

db_manager.py:2752–2756  ·  view source on GitHub ↗

Close the singleton database instance. Used before encrypting the DB file.

()

Source from the content-addressed store, hash-verified

2750 DatabaseManager instance
2751 """
2752 global _db_instance
2753
2754 if _db_instance is None:
2755 with _db_lock:
2756 if _db_instance is None:
2757 _db_instance = DatabaseManager(currentdir=currentdir)
2758
2759 return _db_instance

Callers 1

_close_dbMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected