scores: allow specifying the monitor by name
continuous-integration/drone/push Build is passing

This commit is contained in:
ask
2023-12-22 08:59:13 -08:00
parent 9280668d28
commit 6553b4711b
3 changed files with 17 additions and 2 deletions
+5 -1
View File
@@ -48,7 +48,11 @@ where
ip = sqlc.arg(ip);
-- name: GetMonitorByName :one
select * from monitors where tls_name = ?;
select * from monitors
where
tls_name like sqlc.arg('tls_name')
order by id
limit 1;
-- name: GetMonitorsByID :many
select * from monitors