ListSilosForUser

This commit is contained in:
Abhishek Shroff
2024-07-31 21:01:16 -07:00
parent a342a599fa
commit 45d23dfe47
5 changed files with 57 additions and 9 deletions
+5 -2
View File
@@ -14,5 +14,8 @@ INSERT INTO silos(
$1, NOW(), NOW(), $2, $3, $4
);
-- name: ListSilos :many
SELECT * from silos;
-- name: ListAllSilos :many
SELECT * from silos;
-- name: ListSilosForUser :many
SELECT * from silos where owner = @username::text;