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

Method getAllNodeNames

src/db/queries.ts:4719–4725  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

4717 * Get all distinct node names (lightweight — just name strings for pre-filtering)
4718 */
4719 getAllNodeNames(): string[] {
4720 if (!this.stmts.getAllNodeNames) {
4721 this.stmts.getAllNodeNames = this.db.prepare('SELECT DISTINCT name FROM nodes');
4722 }
4723 const rows = this.stmts.getAllNodeNames.all() as Array<{ name: string }>;
4724 return rows.map((r) => r.name);
4725 }
4726
4727 /**
4728 * 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