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

Method __init__

backend/persistence/db.py:13–18  ·  view source on GitHub ↗
(self, path=":memory:")

Source from the content-addressed store, hash-verified

11
12class SqliteRepository:
13 def __init__(self, path=":memory:"):
14 self.path = path
15 self._lock = threading.Lock()
16 self._conn = sqlite3.connect(path, check_same_thread=False)
17 self._conn.row_factory = sqlite3.Row
18 self._init_schema()
19
20 def _init_schema(self):
21 with self._conn:

Callers

nothing calls this directly

Calls 1

_init_schemaMethod · 0.95

Tested by

no test coverage detected