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

Commit0376096

Browse files
committed
PR comments
1 parent1ade621 commit0376096

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

‎coderd/database/queries.sql.go‎

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

‎coderd/database/queries/aibridge.sql‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ SELECT
5050
FROM
5151
aibridge_token_usagesWHERE interception_id= @interception_id::uuid
5252
ORDER BY
53-
created_atDESC,
54-
idDESC;
53+
created_atASC,
54+
idASC;
5555

5656
-- name: GetAIBridgeUserPromptsByInterceptionID :many
5757
SELECT
@@ -61,8 +61,8 @@ FROM
6161
WHERE
6262
interception_id= @interception_id::uuid
6363
ORDER BY
64-
created_atDESC,
65-
idDESC;
64+
created_atASC,
65+
idASC;
6666

6767
-- name: GetAIBridgeToolUsagesByInterceptionID :many
6868
SELECT
@@ -72,8 +72,8 @@ FROM
7272
WHERE
7373
interception_id= @interception_id::uuid
7474
ORDER BY
75-
created_atDESC,
76-
idDESC;
75+
created_atASC,
76+
idASC;
7777

7878
-- name: ListAIBridgeInterceptions :many
7979
SELECT
@@ -111,6 +111,9 @@ WHERE
111111
-- The pagination cursor is the last ID of the previous page.
112112
-- The query is ordered by the started_at field, so select all
113113
-- rows before the cursor and before the after_id UUID.
114+
-- This uses a less than operator because we're sorting DESC. The
115+
-- "after_id" terminology comes from our pagination parser in
116+
-- coderd.
114117
(aibridge_interceptions.started_at,aibridge_interceptions.id)< (
115118
(SELECT started_atFROM aibridge_interceptionsWHERE id= @after_id),
116119
@after_id::uuid

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp