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

This commit is contained in:
ask
2023-12-23 01:54:21 -08:00
parent 19c02063e9
commit 47b96cd598
7 changed files with 282 additions and 2 deletions
+10
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;