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

Method _delete_record_sync

openspace/skill_engine/store.py:664–673  ·  view source on GitHub ↗
(self, skill_id: str)

Source from the content-addressed store, hash-verified

662
663 @_db_retry()
664 def _delete_record_sync(self, skill_id: str) -> bool:
665 self._ensure_open()
666 with self._mu:
667 # ON DELETE CASCADE automatically cleans up lineage_parents / deps / tags
668 # skill_judgments are NOT cascade-deleted (no FK to skill_records)
669 cur = self._conn.execute(
670 "DELETE FROM skill_records WHERE skill_id=?", (skill_id,)
671 )
672 self._conn.commit()
673 return cur.rowcount > 0
674
675 # Read API (sync, each call opens its own read-only conn)
676 @_db_retry()

Callers

nothing calls this directly

Calls 2

_ensure_openMethod · 0.95
executeMethod · 0.45

Tested by

no test coverage detected