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

Method iterateNodeNames

src/db/queries.ts:2415–2420  ·  view source on GitHub ↗

* 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.

()

Source from the content-addressed store, hash-verified

2413 * indexes). Fresh statement per call: the iterator holds an open cursor.
2414 */
2415 *iterateNodeNames(): IterableIterator<string> {
2416 const stmt = this.db.prepare('SELECT DISTINCT name FROM nodes');
2417 for (const row of stmt.iterate()) {
2418 yield (row as { name: string }).name;
2419 }
2420 }
2421
2422 /**
2423 * Get unresolved references scoped to specific file paths.

Callers 1

warmCachesYieldingMethod · 0.80

Calls 2

prepareMethod · 0.65
iterateMethod · 0.65

Tested by

no test coverage detected