-- name: GetSettings :many
SELECT *
FROM settings;
-- name: GetSetting :one
SELECT *
FROM settings
WHERE key = $1;
-- name: UpdateSetting :exec
UPDATE settings
SET value = $2,
    updated_at = CURRENT_TIMESTAMP
WHERE key = $1;