(user_id: str, node_id: str)
| 504 | |
| 505 | |
| 506 | def 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 | |
| 517 | def _fts_query(query: str) -> str: |
nothing calls this directly
no test coverage detected