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

Method isNameSegmentVocabEmpty

src/db/queries.ts:664–667  ·  view source on GitHub ↗

True when the vocab has no rows — an index built before the table existed. * `sync` uses this to heal such databases (see rebuildNameSegmentVocabFrom).

()

Source from the content-addressed store, hash-verified

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). */
664 isNameSegmentVocabEmpty(): boolean {
665 const row = this.db.prepare('SELECT 1 FROM name_segment_vocab LIMIT 1').get();
666 return row === undefined;
667 }
668
669 /** One page of distinct segmentable node names, for batched vocab rebuilds
670 * (file basenames and import specifiers are excluded from the vocab — see

Callers 3

syncMethod · 0.80

Calls 2

getMethod · 0.65
prepareMethod · 0.65

Tested by

no test coverage detected