Remove all nodes and edges associated with a file.
(self, file_path: str)
| 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 |