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

Method iterate

src/db/sqlite-adapter.ts:23–23  ·  view source on GitHub ↗

* Lazily yield result rows one at a time instead of materializing the whole * set with `all()`. Use for unbounded scans (e.g. every function/method node) * so memory stays O(1) in the row count rather than O(rows) — see #610, where * `all()`-ing every symbol on a dense project spiked the he

(...params: any[])

Source from the content-addressed store, hash-verified

21 * `all()`-ing every symbol on a dense project spiked the heap into an OOM.
22 */
23 iterate(...params: any[]): IterableIterator<any>;
24}
25
26export interface SqliteDatabase {

Callers 4

iterateNodesByKindMethod · 0.65
iterateNodeNamesMethod · 0.65
iterateMethod · 0.65

Implementers 1

NodeSqliteAdaptersrc/db/sqlite-adapter.ts

Calls

no outgoing calls

Tested by

no test coverage detected