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

Method getAllNodeNames

src/db/queries.ts:4608–4614  ·  view source on GitHub ↗

* Get all distinct node names (lightweight — just name strings for pre-filtering)

()

Source from the content-addressed store, hash-verified

4606 * Get all distinct node names (lightweight — just name strings for pre-filtering)
4607 */
4608 getAllNodeNames(): string[] {
4609 if (!this.stmts.getAllNodeNames) {
4610 this.stmts.getAllNodeNames = this.db.prepare('SELECT DISTINCT name FROM nodes');
4611 }
4612 const rows = this.stmts.getAllNodeNames.all() as Array<{ name: string }>;
4613 return rows.map((r) => r.name);
4614 }
4615
4616 /**
4617 * The distinct node names, in {@link getAllNodeNames} order, and the same

Callers 2

readMethod · 0.95
warmCachesMethod · 0.80

Calls 3

mapMethod · 0.80
prepareMethod · 0.65
allMethod · 0.65

Tested by

no test coverage detected