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

Method getFilesWithoutNodesOrWithErrors

src/db/queries.ts:4399–4404  ·  view source on GitHub ↗

* Files stored with no nodes or with recorded extraction errors — the only * rows that can be missing their symbols (`CodeGraph.getIndexHealth`). A * healthy index returns few or none, so this stays cheap on a large one.

()

Source from the content-addressed store, hash-verified

4397 * healthy index returns few or none, so this stays cheap on a large one.
4398 */
4399 getFilesWithoutNodesOrWithErrors(): FileRecord[] {
4400 const rows = this.db
4401 .prepare('SELECT * FROM files WHERE node_count = 0 OR errors IS NOT NULL ORDER BY path')
4402 .all() as FileRow[];
4403 return rows.map(rowToFileRecord);
4404 }
4405
4406 /**
4407 * Most recent index timestamp (ms since epoch) across all tracked files, or

Callers 1

getIndexHealthMethod · 0.80

Calls 3

mapMethod · 0.80
allMethod · 0.65
prepareMethod · 0.65

Tested by

no test coverage detected