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

Method countGeneratedFiles

src/db/queries.ts:4227–4234  ·  view source on GitHub ↗

How many indexed files carry the generated flag. Surfaced by `status`.

()

Source from the content-addressed store, hash-verified

4225
4226 /** How many indexed files carry the generated flag. Surfaced by `status`. */
4227 countGeneratedFiles(): number {
4228 // Before schema v9 no file carries the flag (#2913).
4229 if (!this.hasSchema('files', 'generated')) return 0;
4230 const row = this.db
4231 .prepare('SELECT COUNT(*) AS n FROM files WHERE generated = 1')
4232 .get() as { n: number } | undefined;
4233 return row?.n ?? 0;
4234 }
4235
4236 /**
4237 * Delete a file record and its nodes

Calls 3

hasSchemaMethod · 0.95
getMethod · 0.65
prepareMethod · 0.65

Tested by

no test coverage detected