Show first 200 transactions only

This commit is contained in:
jacob1123 committed 2021-12-02 16:23:59 +00:00
1 parent 61c55dda3a
commit 67139ceff8
2 files changed
+6 -2

No files matched your search

+4 -2
View File
@@ -8,9 +8,11 @@ RETURNING *;
SELECT transactions.* FROM transactions
LEFT JOIN accounts ON accounts.id = transactions.account_id
WHERE accounts.budget_id = $1
ORDER BY transactions.date DESC;
ORDER BY transactions.date DESC
LIMIT 200;
-- name: GetTransactionsForAccount :many
SELECT transactions.* FROM transactions
WHERE transactions.account_id = $1
ORDER BY transactions.date DESC;
ORDER BY transactions.date DESC
LIMIT 200;