MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / deleteNode

Method deleteNode

src/db/queries.ts:625–632  ·  view source on GitHub ↗

* Delete a node by ID

(id: string)

Source from the content-addressed store, hash-verified

623 * Delete a node by ID
624 */
625 deleteNode(id: string): void {
626 if (!this.stmts.deleteNode) {
627 this.stmts.deleteNode = this.db.prepare('DELETE FROM nodes WHERE id = ?');
628 }
629 // Invalidate cache
630 this.nodeCache.delete(id);
631 this.stmts.deleteNode.run(id);
632 }
633
634 /**
635 * 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