Commit Graph

3 Commits

Author SHA1 Message Date
Alexander Heldt d95cd52086 Store events and config in SQLite
Replace the JSON-file event and config stores with a SQLite database
(modernc.org/sqlite, pure-Go so the static build keeps CGO_ENABLED=0).
Last-write-wins now rides on the upsert's WHERE clause rather than a
Go-side map compare; the sync protocol and HTTP handlers are unchanged.

On first start the server auto-imports any legacy events.json/config.json
sitting in the data dir, renaming them to *.imported. The -data flag now
points at puppy.db; photos still live on the filesystem alongside it.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-09 16:56:35 +00:00
Alexander Heldt f14a749169 Track age and weight 2026-07-04 09:20:31 +00:00
Alexander Heldt d61e88fa29 Light of day 2026-06-21 17:41:56 +00:00