Implement single account transaction-list

This commit is contained in:
jacob1123 committed 2021-12-02 21:44:35 +00:00
1 parent f2e8721aa8
commit 871b11bbcc
7 files changed
+56 -48

No files matched your search

+4
View File
@@ -4,6 +4,10 @@ INSERT INTO accounts
VALUES ($1, $2)
RETURNING *;
-- name: GetAccount :one
SELECT accounts.* FROM accounts
WHERE accounts.id = $1;
-- name: GetAccounts :many
SELECT accounts.* FROM accounts
WHERE accounts.budget_id = $1;