One page of distinct segmentable node names, for batched vocab rebuilds * (file basenames and import specifiers are excluded from the vocab — see * insertNode).
(limit: number, offset: number)
| 670 | * (file basenames and import specifiers are excluded from the vocab — see |
| 671 | * insertNode). */ |
| 672 | getDistinctNodeNames(limit: number, offset: number): string[] { |
| 673 | const rows = this.db |
| 674 | .prepare("SELECT DISTINCT name FROM nodes WHERE kind NOT IN ('file', 'import') ORDER BY name LIMIT ? OFFSET ?") |
| 675 | .all(limit, offset) as Array<{ name: string }>; |
| 676 | return rows.map((r) => r.name); |
| 677 | } |
| 678 | |
| 679 | /** Insert segments for a batch of names in one transaction (vocab heal path). */ |
| 680 | insertNameSegmentsBatch(names: string[]): void { |
no test coverage detected