Database Example
One query API for native SQLite and Cloudflare D1 bindings today, with room for more database drivers in the future.
Visit counter
A row is added through the active database adapter on every request.
- Total visits recorded:
- 707
- Latest visit:
- 2026-11-12 14:21:31
Aggregate query
The SQL lives in query.zig; this page only initializes, seeds, and renders its result.
- Customers
- 3
- Orders
- 2031
- Paid orders
- 1354
- Revenue
- $51452.00
- Latest order
- 2026-11-12 14:21:32