MCPcopy Create free account
hub / github.com/HKUDS/OpenSpace / _init_db

Method _init_db

openspace/skill_engine/store.py:262–267  ·  view source on GitHub ↗

Create tables if they don't exist (idempotent via IF NOT EXISTS).

(self)

Source from the content-addressed store, hash-verified

260
261 @_db_retry()
262 def _init_db(self) -> None:
263 """Create tables if they don't exist (idempotent via IF NOT EXISTS)."""
264 with self._mu:
265 self._conn.executescript(_DDL)
266 self._migrate_add_evolution_processed_at()
267 self._conn.commit()
268
269 def _migrate_add_evolution_processed_at(self) -> None:
270 """Add evolution_processed_at column to existing DBs (idempotent)."""

Callers 1

__init__Method · 0.95

Tested by

no test coverage detected