MCPcopy Create free account
hub / github.com/Tong89/smartNode / __init__

Method __init__

backend/store.py:66–71  ·  view source on GitHub ↗
(self, db_path: str = ":memory:")

Source from the content-addressed store, hash-verified

64 """
65
66 def __init__(self, db_path: str = ":memory:") -> None:
67 self.db_path = db_path
68 self._lock = threading.Lock()
69 self._conn = sqlite3.connect(db_path, check_same_thread=False)
70 self._conn.row_factory = sqlite3.Row
71 self._init_schema()
72
73 # ── 数据库初始化 ──────────────────────────────────────────────────────────
74

Callers

nothing calls this directly

Calls 1

_init_schemaMethod · 0.95

Tested by

no test coverage detected