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

Method deleteNode

src/db/queries.ts:1021–1028  ·  view source on GitHub ↗

* Delete a node by ID

(id: string)

Source from the content-addressed store, hash-verified

1019 * Delete a node by ID
1020 */
1021 deleteNode(id: string): void {
1022 if (!this.stmts.deleteNode) {
1023 this.stmts.deleteNode = this.db.prepare('DELETE FROM nodes WHERE id = ?');
1024 }
1025 // Invalidate cache
1026 this.nodeCache.delete(id);
1027 this.stmts.deleteNode.run(id);
1028 }
1029
1030 /**
1031 * 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