* 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)
()
| 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 |
no test coverage detected