MCPcopy
hub / github.com/colbymchenry/codegraph / deleteNode

Method deleteNode

src/db/queries.ts:387–394  ·  view source on GitHub ↗

* Delete a node by ID

(id: string)

Source from the content-addressed store, hash-verified

385 * Delete a node by ID
386 */
387 deleteNode(id: string): void {
388 if (!this.stmts.deleteNode) {
389 this.stmts.deleteNode = this.db.prepare('DELETE FROM nodes WHERE id = ?');
390 }
391 // Invalidate cache
392 this.nodeCache.delete(id);
393 this.stmts.deleteNode.run(id);
394 }
395
396 /**
397 * Delete all nodes for a file

Callers

nothing calls this directly

Calls 2

prepareMethod · 0.65
runMethod · 0.65

Tested by

no test coverage detected