hsa-app/internal/storage
Jean-Michel Tremblay a7566ed166 Verify DB integrity at boot; document crash recovery (spec item 12)
- Open() now runs PRAGMA quick_check after WAL recovery. WAL mode already makes
  opening self-healing (committed writes rolled forward, an interrupted write
  discarded), so a crash mid-write recovers automatically; quick_check fails fast
  only on genuine corruption, pointing the operator at BACKUP_DIR.
- spec item 12 documents the durability/recovery model and the orphan-file caveat.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 07:43:15 -04:00
..
lookup.go Initial commit: HSA receipt tracker 2026-06-17 21:40:12 -04:00
query.go Add receipt attachments captured at upload time (spec item 10) 2026-06-19 07:06:15 -04:00
query_test.go Add receipt attachments captured at upload time (spec item 10) 2026-06-19 07:06:15 -04:00
snapshot.go Add scheduled metadata-only DB backups (spec item 11) 2026-06-19 07:12:50 -04:00
snapshot_test.go Add scheduled metadata-only DB backups (spec item 11) 2026-06-19 07:12:50 -04:00
storage.go Verify DB integrity at boot; document crash recovery (spec item 12) 2026-06-19 07:43:15 -04:00
storage_test.go Verify DB integrity at boot; document crash recovery (spec item 12) 2026-06-19 07:43:15 -04:00