chore(coderd/database/queries): remove trailing whitespace (#20192)

This commit is contained in:
Mathias Fredriksson
2025-10-07 13:10:38 +00:00
committed by GitHub
parent 6b72ef8b18
commit 057d7dacdc
6 changed files with 34 additions and 34 deletions
+16 -16
View File
@@ -8966,7 +8966,7 @@ WHERE
-- Filter by max age if provided
AND (
$7::bigint IS NULL
OR pd.last_seen_at IS NULL
OR pd.last_seen_at IS NULL
OR pd.last_seen_at >= (NOW() - ($7::bigint || ' ms')::interval)
)
AND (
@@ -9291,11 +9291,11 @@ func (q *sqlQuerier) InsertProvisionerJobLogs(ctx context.Context, arg InsertPro
}
const updateProvisionerJobLogsLength = `-- name: UpdateProvisionerJobLogsLength :exec
UPDATE
UPDATE
provisioner_jobs
SET
SET
logs_length = logs_length + $2
WHERE
WHERE
id = $1
`
@@ -9310,11 +9310,11 @@ func (q *sqlQuerier) UpdateProvisionerJobLogsLength(ctx context.Context, arg Upd
}
const updateProvisionerJobLogsOverflowed = `-- name: UpdateProvisionerJobLogsOverflowed :exec
UPDATE
UPDATE
provisioner_jobs
SET
SET
logs_overflowed = $2
WHERE
WHERE
id = $1
`
@@ -10376,7 +10376,7 @@ FROM
provisioner_keys
WHERE
organization_id = $1
AND
AND
lower(name) = lower($2)
`
@@ -10492,10 +10492,10 @@ WHERE
AND
-- exclude reserved built-in key
id != '00000000-0000-0000-0000-000000000001'::uuid
AND
AND
-- exclude reserved user-auth key
id != '00000000-0000-0000-0000-000000000002'::uuid
AND
AND
-- exclude reserved psk key
id != '00000000-0000-0000-0000-000000000003'::uuid
`
@@ -14289,14 +14289,14 @@ DO $$
DECLARE
table_record record;
BEGIN
FOR table_record IN
SELECT table_schema, table_name
FROM information_schema.tables
FOR table_record IN
SELECT table_schema, table_name
FROM information_schema.tables
WHERE table_schema NOT IN ('pg_catalog', 'information_schema')
AND table_type = 'BASE TABLE'
LOOP
EXECUTE format('ALTER TABLE %I.%I DISABLE TRIGGER ALL',
table_record.table_schema,
EXECUTE format('ALTER TABLE %I.%I DISABLE TRIGGER ALL',
table_record.table_schema,
table_record.table_name);
END LOOP;
END;
@@ -18281,7 +18281,7 @@ WITH agent_stats AS (
coalesce((PERCENTILE_CONT(0.95) WITHIN GROUP (ORDER BY connection_median_latency_ms)), -1)::FLOAT AS workspace_connection_latency_95
FROM workspace_agent_stats
-- The greater than 0 is to support legacy agents that don't report connection_median_latency_ms.
WHERE workspace_agent_stats.created_at > $1 AND connection_median_latency_ms > 0
WHERE workspace_agent_stats.created_at > $1 AND connection_median_latency_ms > 0
GROUP BY user_id, agent_id, workspace_id, template_id
), latest_agent_stats AS (
SELECT
@@ -113,7 +113,7 @@ WHERE
-- Filter by max age if provided
AND (
sqlc.narg('max_age_ms')::bigint IS NULL
OR pd.last_seen_at IS NULL
OR pd.last_seen_at IS NULL
OR pd.last_seen_at >= (NOW() - (sqlc.narg('max_age_ms')::bigint || ' ms')::interval)
)
AND (
@@ -19,19 +19,19 @@ SELECT
unnest(@level :: log_level [ ]) AS LEVEL,
unnest(@stage :: VARCHAR(128) [ ]) AS stage,
unnest(@output :: VARCHAR(1024) [ ]) AS output RETURNING *;
-- name: UpdateProvisionerJobLogsOverflowed :exec
UPDATE
UPDATE
provisioner_jobs
SET
SET
logs_overflowed = $2
WHERE
WHERE
id = $1;
-- name: UpdateProvisionerJobLogsLength :exec
UPDATE
UPDATE
provisioner_jobs
SET
SET
logs_length = logs_length + $2
WHERE
WHERE
id = $1;
+3 -3
View File
@@ -34,7 +34,7 @@ FROM
provisioner_keys
WHERE
organization_id = $1
AND
AND
lower(name) = lower(@name);
-- name: ListProvisionerKeysByOrganizationExcludeReserved :many
@@ -47,10 +47,10 @@ WHERE
AND
-- exclude reserved built-in key
id != '00000000-0000-0000-0000-000000000001'::uuid
AND
AND
-- exclude reserved user-auth key
id != '00000000-0000-0000-0000-000000000002'::uuid
AND
AND
-- exclude reserved psk key
id != '00000000-0000-0000-0000-000000000003'::uuid;
+5 -5
View File
@@ -6,14 +6,14 @@ DO $$
DECLARE
table_record record;
BEGIN
FOR table_record IN
SELECT table_schema, table_name
FROM information_schema.tables
FOR table_record IN
SELECT table_schema, table_name
FROM information_schema.tables
WHERE table_schema NOT IN ('pg_catalog', 'information_schema')
AND table_type = 'BASE TABLE'
LOOP
EXECUTE format('ALTER TABLE %I.%I DISABLE TRIGGER ALL',
table_record.table_schema,
EXECUTE format('ALTER TABLE %I.%I DISABLE TRIGGER ALL',
table_record.table_schema,
table_record.table_name);
END LOOP;
END;
@@ -189,7 +189,7 @@ WITH agent_stats AS (
coalesce((PERCENTILE_CONT(0.95) WITHIN GROUP (ORDER BY connection_median_latency_ms)), -1)::FLOAT AS workspace_connection_latency_95
FROM workspace_agent_stats
-- The greater than 0 is to support legacy agents that don't report connection_median_latency_ms.
WHERE workspace_agent_stats.created_at > $1 AND connection_median_latency_ms > 0
WHERE workspace_agent_stats.created_at > $1 AND connection_median_latency_ms > 0
GROUP BY user_id, agent_id, workspace_id, template_id
), latest_agent_stats AS (
SELECT