* 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)
()
| 4297 | * null when nothing is indexed yet. One indexed aggregate, no per-row scan. (#329) |
| 4298 | */ |
| 4299 | getLastIndexedAt(): number | null { |
| 4300 | const row = this.db |
| 4301 | .prepare('SELECT MAX(indexed_at) AS last FROM files') |
| 4302 | .get() as { last: number | null } | undefined; |
| 4303 | return row?.last ?? null; |
| 4304 | } |
| 4305 | |
| 4306 | /** |
| 4307 | * The index's revision marker: how far the last sync got, and how many files |
no test coverage detected