(self, skill_id: str)
| 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() |
nothing calls this directly
no test coverage detected