Add EntityCounts struct and StatsRepository::entity_counts() to query per-entity row counts. Include them in CachedStats so the home page can read counts from cache instead of issuing six list queries with LIMIT 1. Derive Default on StatsView for the fallback case. |
||
|---|---|---|
| .. | ||
| bags.rs | ||
| brews.rs | ||
| cafes.rs | ||
| cups.rs | ||
| gear.rs | ||
| mod.rs | ||
| roasters.rs | ||
| roasts.rs | ||
| tasting_notes.rs | ||
| timeline.rs | ||