-- name: GetFingerprintSettings :one SELECT * FROM fingerprint_settings WHERE id = true; -- name: UpdateFingerprintSettings :one -- Whole-row write from the admin card; migration 0061's CHECKs are the backstop -- behind the service's own validation. UPDATE fingerprint_settings SET enabled = sqlc.arg(enabled), chromaprint_length_sec = sqlc.arg(chromaprint_length_sec), acoustic_max_bit_error_rate = sqlc.arg(acoustic_max_bit_error_rate), backfill_concurrency = sqlc.arg(backfill_concurrency), sweep_interval_hours = sqlc.arg(sweep_interval_hours), updated_at = now() WHERE id = true RETURNING *;