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

Method clearNameSegmentVocab

src/db/queries.ts:657–660  ·  view source on GitHub ↗

Wipe the segment vocabulary. A full index calls this at its start; the * node write path repopulates it as files (re-)index, so the end state is * exactly the current names with no orphan rows.

()

Source from the content-addressed store, hash-verified

655 * node write path repopulates it as files (re-)index, so the end state is
656 * exactly the current names with no orphan rows. */
657 clearNameSegmentVocab(): void {
658 this.db.exec('DELETE FROM name_segment_vocab');
659 this.segmentedNames.clear();
660 }
661
662 /** True when the vocab has no rows — an index built before the table existed.
663 * `sync` uses this to heal such databases (see rebuildNameSegmentVocabFrom). */

Callers 2

indexAllMethod · 0.80

Calls 2

execMethod · 0.65
clearMethod · 0.45

Tested by

no test coverage detected