Still migrating to postgres, have to check that everything works and fix stuff
This commit is contained in:
@@ -5,18 +5,18 @@ FROM
|
||||
"expensesShares" as shares
|
||||
JOIN
|
||||
users as users ON users.UserID = shares.UserID
|
||||
WHERE "ExpID" = ?;
|
||||
WHERE "ExpID" = $1;
|
||||
|
||||
-- name: InsertShare :execresult
|
||||
INSERT INTO "expensesShares"(
|
||||
"ExpID", "UserID", "Share", "Calculated"
|
||||
)
|
||||
VALUES(?, ?, ?, ?);
|
||||
VALUES($1, $2, $3, $4);
|
||||
|
||||
-- name: UpdateShare :execresult
|
||||
UPDATE expensesShares
|
||||
SET "UserID" = ?, "Share" = ?, "Calculated" = ?
|
||||
WHERE "ExpShareID" = ?;
|
||||
UPDATE "expensesShares"
|
||||
SET "UserID" = $1, "Share" = $2, "Calculated" = $3
|
||||
WHERE "ExpShareID" = $4;
|
||||
|
||||
-- name: DeleteShare :execresult
|
||||
DELETE FROM "expensesShares" where "ExpShareID" = ?;
|
||||
DELETE FROM "expensesShares" where "ExpShareID" = $1;
|
||||
|
||||
Reference in New Issue
Block a user