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

Method getLastIndexedAt

src/db/queries.ts:4410–4415  ·  view source on GitHub ↗

* Most recent index timestamp (ms since epoch) across all tracked files, or * null when nothing is indexed yet. One indexed aggregate, no per-row scan. (#329)

()

Source from the content-addressed store, hash-verified

4408 * null when nothing is indexed yet. One indexed aggregate, no per-row scan. (#329)
4409 */
4410 getLastIndexedAt(): number | null {
4411 const row = this.db
4412 .prepare('SELECT MAX(indexed_at) AS last FROM files')
4413 .get() as { last: number | null } | undefined;
4414 return row?.last ?? null;
4415 }
4416
4417 /**
4418 * The index's revision marker: how far the last sync got, and how many files

Callers 9

handleStatusMethod · 0.45
buildFlowFunction · 0.45
buildMapFunction · 0.45
blastScaleForFunction · 0.45
buildStatsFunction · 0.45
buildScreensFunction · 0.45
buildStepsFunction · 0.45
buildEntryPointsFunction · 0.45
mainFunction · 0.45

Calls 2

getMethod · 0.65
prepareMethod · 0.65

Tested by

no test coverage detected