Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit057d7da

Browse files
authored
chore(coderd/database/queries): remove trailing whitespace (#20192)
1 parent6b72ef8 commit057d7da

File tree

6 files changed

+34
-34
lines changed

6 files changed

+34
-34
lines changed

‎coderd/database/queries.sql.go‎

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/database/queries/provisionerdaemons.sql‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ WHERE
113113
-- Filter by max age if provided
114114
AND (
115115
sqlc.narg('max_age_ms')::bigint ISNULL
116-
ORpd.last_seen_at ISNULL
116+
ORpd.last_seen_at ISNULL
117117
ORpd.last_seen_at>= (NOW()- (sqlc.narg('max_age_ms')::bigint||' ms')::interval)
118118
)
119119
AND (

‎coderd/database/queries/provisionerjoblogs.sql‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ SELECT
1919
unnest(@level :: log_level [ ])AS LEVEL,
2020
unnest(@stage ::VARCHAR(128) [ ])AS stage,
2121
unnest(@output ::VARCHAR(1024) [ ])AS output RETURNING*;
22-
22+
2323
-- name: UpdateProvisionerJobLogsOverflowed :exec
24-
UPDATE
24+
UPDATE
2525
provisioner_jobs
26-
SET
26+
SET
2727
logs_overflowed= $2
28-
WHERE
28+
WHERE
2929
id= $1;
30-
30+
3131
-- name: UpdateProvisionerJobLogsLength :exec
32-
UPDATE
32+
UPDATE
3333
provisioner_jobs
34-
SET
34+
SET
3535
logs_length= logs_length+ $2
36-
WHERE
36+
WHERE
3737
id= $1;

‎coderd/database/queries/provisionerkeys.sql‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ FROM
3434
provisioner_keys
3535
WHERE
3636
organization_id= $1
37-
AND
37+
AND
3838
lower(name)=lower(@name);
3939

4040
-- name: ListProvisionerKeysByOrganizationExcludeReserved :many
@@ -47,10 +47,10 @@ WHERE
4747
AND
4848
-- exclude reserved built-in key
4949
id!='00000000-0000-0000-0000-000000000001'::uuid
50-
AND
50+
AND
5151
-- exclude reserved user-auth key
5252
id!='00000000-0000-0000-0000-000000000002'::uuid
53-
AND
53+
AND
5454
-- exclude reserved psk key
5555
id!='00000000-0000-0000-0000-000000000003'::uuid;
5656

‎coderd/database/queries/testadmin.sql‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ DO $$
66
DECLARE
77
table_record record;
88
BEGIN
9-
FOR table_recordIN
10-
SELECT table_schema, table_name
11-
FROMinformation_schema.tables
9+
FOR table_recordIN
10+
SELECT table_schema, table_name
11+
FROMinformation_schema.tables
1212
WHERE table_schema NOTIN ('pg_catalog','information_schema')
1313
AND table_type='BASE TABLE'
1414
LOOP
15-
EXECUTE format('ALTER TABLE %I.%I DISABLE TRIGGER ALL',
16-
table_record.table_schema,
15+
EXECUTE format('ALTER TABLE %I.%I DISABLE TRIGGER ALL',
16+
table_record.table_schema,
1717
table_record.table_name);
1818
END LOOP;
1919
END;

‎coderd/database/queries/workspaceagentstats.sql‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ WITH agent_stats AS (
189189
coalesce((PERCENTILE_CONT(0.95) WITHIN GROUP (ORDER BY connection_median_latency_ms)),-1)::FLOATAS workspace_connection_latency_95
190190
FROM workspace_agent_stats
191191
-- The greater than 0 is to support legacy agents that don't report connection_median_latency_ms.
192-
WHEREworkspace_agent_stats.created_at> $1AND connection_median_latency_ms>0
192+
WHEREworkspace_agent_stats.created_at> $1AND connection_median_latency_ms>0
193193
GROUP BY user_id, agent_id, workspace_id, template_id
194194
), latest_agent_statsAS (
195195
SELECT

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp