mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-08-02 22:20:08 +00:00
Fresh Go installs failed with 'no such table: packets_v' because the ingestor created tables but never the VIEW that the Go server queries. Add DROP VIEW IF EXISTS + CREATE VIEW packets_v to applySchema(), using the v3 definition (observer_idx → observers.rowid JOIN). The view is rebuilt on every startup to stay current with any definition changes. Add tests: verify view exists after OpenStore, and verify it returns correct observer_id/observer_name via the LEFT JOIN. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>