Skip to content

Commit 2d74311

Browse files
function for pending_transactions_archive
1 parent 1c3edaa commit 2d74311

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

db/queries/pending_transactions.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,9 @@ SELECT
7474
AVG(duration_ms) as avg_duration_ms
7575
FROM pending_transactions_archive
7676
WHERE session_id = $1;
77+
78+
-- name: GetPendingTransactionsByUserPaginatedPQ :many
79+
SELECT * FROM pending_transactions_archive
80+
WHERE executed_by = $1
81+
ORDER BY timestamp DESC
82+
LIMIT $2 OFFSET $3;

0 commit comments

Comments
 (0)