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

Method getAllFilePaths

src/db/queries.ts:2138–2144  ·  view source on GitHub ↗

* Get all tracked file paths (lightweight — no full FileRecord objects)

()

Source from the content-addressed store, hash-verified

2136 * Get all tracked file paths (lightweight — no full FileRecord objects)
2137 */
2138 getAllFilePaths(): string[] {
2139 if (!this.stmts.getAllFilePaths) {
2140 this.stmts.getAllFilePaths = this.db.prepare('SELECT path FROM files ORDER BY path');
2141 }
2142 const rows = this.stmts.getAllFilePaths.all() as Array<{ path: string }>;
2143 return rows.map((r) => r.path);
2144 }
2145
2146 /**
2147 * Get all distinct node names (lightweight — just name strings for pre-filtering)

Callers 3

warmCachesMethod · 0.80
warmCachesYieldingMethod · 0.80
createContextMethod · 0.80

Calls 2

prepareMethod · 0.65
allMethod · 0.65

Tested by

no test coverage detected