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

Method countGeneratedFiles

src/db/queries.ts:4338–4345  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

4336
4337 /** How many indexed files carry the generated flag. Surfaced by `status`. */
4338 countGeneratedFiles(): number {
4339 // Before schema v9 no file carries the flag (#2913).
4340 if (!this.hasSchema('files', 'generated')) return 0;
4341 const row = this.db
4342 .prepare('SELECT COUNT(*) AS n FROM files WHERE generated = 1')
4343 .get() as { n: number } | undefined;
4344 return row?.n ?? 0;
4345 }
4346
4347 /**
4348 * Delete a file record and its nodes

Calls 3

hasSchemaMethod · 0.95
getMethod · 0.65
prepareMethod · 0.65

Tested by

no test coverage detected