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

Method is_db_available

auth_manager.py:906–908  ·  view source on GitHub ↗

Check if the main database is available (decrypted).

(self)

Source from the content-addressed store, hash-verified

904 """
905 if not self.is_configured():
906 return
907
908 if os.path.exists(self.main_db_path) and os.path.exists(self.encrypted_db_path):
909 # Both exist. Likely either a crash leftover or the empty placeholder
910 # created by get_db() at startup. Either way the encrypted copy is the
911 # authoritative version; decrypt_database() will replace ragnar.db on login.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected