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

Method insertNameSegments

src/db/queries.ts:457–466  ·  view source on GitHub ↗

Write `name`'s segments into name_segment_vocab (idempotent).

(name: string)

Source from the content-addressed store, hash-verified

455
456 /** Write `name`'s segments into name_segment_vocab (idempotent). */
457 private insertNameSegments(name: string): void {
458 const rows: unknown[][] = [];
459 this.collectNameSegmentRows(name, rows);
460 this.runBatched(
461 'insertNameSegments',
462 'INSERT OR IGNORE INTO name_segment_vocab (segment, name) VALUES ',
463 '(?,?)',
464 rows
465 );
466 }
467
468 /**
469 * Insert multiple nodes in a transaction

Callers 2

insertNodeMethod · 0.95
updateNodeMethod · 0.95

Calls 2

runBatchedMethod · 0.95

Tested by

no test coverage detected