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

Method _close_db

auth_manager.py:887–893  ·  view source on GitHub ↗

Close the main database connections via shared_data.

(self)

Source from the content-addressed store, hash-verified

885 # =========================================================================
886
887 def _close_db(self):
888 """Close the main database connections via shared_data."""
889 try:
890 from db_manager import close_db
891 close_db()
892 except Exception as e:
893 logger.error(f"Failed to close DB: {e}")
894
895 def _reinit_db(self):
896 """Reinitialize the database connection after decryption."""

Callers 3

_background_decryptMethod · 0.95
logoutMethod · 0.95
shutdown_encryptMethod · 0.95

Calls 2

close_dbFunction · 0.90
errorMethod · 0.80

Tested by

no test coverage detected