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

Method deleteNode

src/db/queries.ts:1023–1030  ·  view source on GitHub ↗

* Delete a node by ID

(id: string)

Source from the content-addressed store, hash-verified

1021 * Delete a node by ID
1022 */
1023 deleteNode(id: string): void {
1024 if (!this.stmts.deleteNode) {
1025 this.stmts.deleteNode = this.db.prepare('DELETE FROM nodes WHERE id = ?');
1026 }
1027 // Invalidate cache
1028 this.nodeCache.delete(id);
1029 this.stmts.deleteNode.run(id);
1030 }
1031
1032 /**
1033 * Delete all nodes for a file

Callers 1

Calls 3

prepareMethod · 0.65
deleteMethod · 0.65
runMethod · 0.65

Tested by

no test coverage detected