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

Method load_record

openspace/skill_engine/store.py:677–684  ·  view source on GitHub ↗

Load a single :class:`SkillRecord` by id.

(self, skill_id: str)

Source from the content-addressed store, hash-verified

675 # Read API (sync, each call opens its own read-only conn)
676 @_db_retry()
677 def load_record(self, skill_id: str) -> Optional[SkillRecord]:
678 """Load a single :class:`SkillRecord` by id."""
679 with self._reader() as conn:
680 row = conn.execute(
681 "SELECT * FROM skill_records WHERE skill_id=?",
682 (skill_id,),
683 ).fetchone()
684 return self._to_record(conn, row) if row else None
685
686 @_db_retry()
687 def load_all(

Callers 7

fix_skillFunction · 0.80
skill_detailFunction · 0.80
skill_lineageFunction · 0.80
skill_sourceFunction · 0.80

Calls 3

_readerMethod · 0.95
_to_recordMethod · 0.95
executeMethod · 0.45

Tested by

no test coverage detected