Skip to content

Commit 8125e3e

Browse files
Updated query for results archive
1 parent 254e2ac commit 8125e3e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

db/queries/results_transactions.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,9 @@ SELECT
8080
AVG(duration_ms) as avg_duration_ms
8181
FROM results_transactions_archive
8282
WHERE session_id = $1;
83+
84+
-- name: GetResultsTransactionsByUserPaginatedPQ :many
85+
SELECT * FROM results_transactions_archive
86+
WHERE executed_by = $1
87+
ORDER BY timestamp DESC
88+
LIMIT $2 OFFSET $3;

0 commit comments

Comments
 (0)