True when the vocab has no rows — an index built before the table existed. * `sync` uses this to heal such databases (see rebuildNameSegmentVocabFrom).
()
| 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 |
no test coverage detected