* Stream the distinct node names one row at a time — the incremental * counterpart to getAllNodeNames for callers that need to yield * to the event loop mid-scan (resolver cache warm-up on multi-million-node * indexes). Fresh statement per call: the iterator holds an open cursor.
()
| 2161 | * indexes). Fresh statement per call: the iterator holds an open cursor. |
| 2162 | */ |
| 2163 | *iterateNodeNames(): IterableIterator<string> { |
| 2164 | const stmt = this.db.prepare('SELECT DISTINCT name FROM nodes'); |
| 2165 | for (const row of stmt.iterate()) { |
| 2166 | yield (row as { name: string }).name; |
| 2167 | } |
| 2168 | } |
| 2169 | |
| 2170 | /** |
| 2171 | * Get unresolved references scoped to specific file paths. |
no test coverage detected