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

Method __init__

methods/mem0/memory/storage.py:7–13  ·  view source on GitHub ↗
(self, db_path=":memory:")

Source from the content-addressed store, hash-verified

5
6class SQLiteManager:
7 def __init__(self, db_path=":memory:"):
8 self.db_path = db_path
9 self.connection = sqlite3.connect(db_path, check_same_thread=False)
10 self._lock = threading.Lock()
11 self._closed = False
12 self._migrate_history_table()
13 self._create_history_table()
14
15 def close(self):
16 """Close the database connection."""

Callers

nothing calls this directly

Calls 3

_create_history_tableMethod · 0.95
connectMethod · 0.80

Tested by

no test coverage detected