Private
Public Access
1
0

zones: per zone server counts API migrated
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-12-23 01:32:52 -08:00
parent 19c02063e9
commit 47b96cd598
7 changed files with 282 additions and 2 deletions

View File

@@ -83,3 +83,13 @@ where
monitor_id = ?
order by ts desc
limit ?;
-- name: GetZoneByName :one
select * from zones
where
name = sqlc.arg(name);
-- name: GetZoneCounts :many
select * from zone_server_counts
where zone_id = ?
order by date;