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)
| 1084 | * (file basenames and import specifiers are excluded from the vocab — see |
| 1085 | * insertNode). */ |
| 1086 | getDistinctNodeNames(limit: number, offset: number): string[] { |
| 1087 | const rows = this.db |
| 1088 | .prepare("SELECT DISTINCT name FROM nodes WHERE kind NOT IN ('file', 'import') ORDER BY name LIMIT ? OFFSET ?") |
| 1089 | .all(limit, offset) as Array<{ name: string }>; |
| 1090 | return rows.map((r) => r.name); |
| 1091 | } |
| 1092 | |
| 1093 | /** Insert segments for a batch of names in one transaction (vocab heal path). */ |
| 1094 | insertNameSegmentsBatch(names: string[]): void { |
no test coverage detected