MCPcopy
hub / github.com/tirth8205/code-review-graph / remove_file_data

Method remove_file_data

code_review_graph/graph.py:257–261  ·  view source on GitHub ↗

Remove all nodes and edges associated with a file.

(self, file_path: str)

Source from the content-addressed store, hash-verified

255 return self._conn.execute("SELECT last_insert_rowid()").fetchone()[0]
256
257 def remove_file_data(self, file_path: str) -> None:
258 """Remove all nodes and edges associated with a file."""
259 self._conn.execute("DELETE FROM nodes WHERE file_path = ?", (file_path,))
260 self._conn.execute("DELETE FROM edges WHERE file_path = ?", (file_path,))
261 self._invalidate_cache()
262
263 def _begin_immediate(self) -> None:
264 """Start an IMMEDIATE transaction, rolling back any prior uncommitted

Calls 1

_invalidate_cacheMethod · 0.95