MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / get_node

Function get_node

skills/wiki-store/scripts/wiki_db.py:506–514  ·  view source on GitHub ↗
(user_id: str, node_id: str)

Source from the content-addressed store, hash-verified

504
505
506def get_node(user_id: str, node_id: str) -> Optional[Dict[str, Any]]:
507 init_wiki_schema()
508 conn = db_ops.get_connection()
509 row = conn.execute(
510 "SELECT * FROM wiki_nodes WHERE user_id = ? AND node_id = ?",
511 (user_id, node_id),
512 ).fetchone()
513 conn.close()
514 return _row_to_node(row) if row else None
515
516
517def _fts_query(query: str) -> str:

Callers

nothing calls this directly

Calls 4

init_wiki_schemaFunction · 0.85
_row_to_nodeFunction · 0.85
executeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected