MCPcopy
hub / github.com/colbymchenry/codegraph / getAllNodeNames

Method getAllNodeNames

src/db/queries.ts:1681–1687  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

1679 * Get all distinct node names (lightweight — just name strings for pre-filtering)
1680 */
1681 getAllNodeNames(): string[] {
1682 if (!this.stmts.getAllNodeNames) {
1683 this.stmts.getAllNodeNames = this.db.prepare('SELECT DISTINCT name FROM nodes');
1684 }
1685 const rows = this.stmts.getAllNodeNames.all() as Array<{ name: string }>;
1686 return rows.map((r) => r.name);
1687 }
1688
1689 /**
1690 * Get unresolved references scoped to specific file paths.

Callers 2

searchNodesFuzzyMethod · 0.95
warmCachesMethod · 0.80

Calls 2

prepareMethod · 0.65
allMethod · 0.65

Tested by

no test coverage detected