MCPcopy Create free account
hub / github.com/AQ-MedAI/MedMemoryBench / reset_sqlite

Function reset_sqlite

methods/MIRIX/scripts/reset_database.py:377–389  ·  view source on GitHub ↗

Reset SQLite database.

(database_path: str = None)

Source from the content-addressed store, hash-verified

375
376
377def reset_sqlite(database_path: str = None):
378 """Reset SQLite database."""
379 if not database_path:
380 database_path = str(Path.home() / ".mirix" / "sqlite.db")
381
382 log_info(f"Resetting SQLite database: {database_path}")
383
384 sqlite_file = Path(database_path)
385 if sqlite_file.exists():
386 sqlite_file.unlink()
387 log_success(f"Deleted SQLite database: {database_path}")
388 else:
389 log_warning(f"SQLite database does not exist: {database_path}")
390
391
392def main():

Callers 1

mainFunction · 0.85

Calls 4

log_infoFunction · 0.85
log_successFunction · 0.85
log_warningFunction · 0.85
existsMethod · 0.45

Tested by

no test coverage detected