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

Method insertNodes

src/db/queries.ts:311–317  ·  view source on GitHub ↗

* Insert multiple nodes in a transaction

(nodes: Node[])

Source from the content-addressed store, hash-verified

309 * Insert multiple nodes in a transaction
310 */
311 insertNodes(nodes: Node[]): void {
312 this.db.transaction(() => {
313 for (const node of nodes) {
314 this.insertNode(node);
315 }
316 })();
317 }
318
319 /**
320 * Update an existing node

Callers 2

storeExtractionResultMethod · 0.80
db-perf.test.tsFile · 0.80

Calls 2

insertNodeMethod · 0.95
transactionMethod · 0.65

Tested by

no test coverage detected