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

Method insertNameSegments

src/db/queries.ts:802–811  ·  view source on GitHub ↗

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

(name: string)

Source from the content-addressed store, hash-verified

800
801 /** Write `name`'s segments into name_segment_vocab (idempotent). */
802 private insertNameSegments(name: string): void {
803 const rows: unknown[][] = [];
804 this.collectNameSegmentRows(name, rows);
805 this.runBatched(
806 'insertNameSegments',
807 'INSERT OR IGNORE INTO name_segment_vocab (segment, name) VALUES ',
808 '(?,?)',
809 rows
810 );
811 }
812
813 /**
814 * 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