Still migrating to postgres, have to check that everything works and fix stuff

This commit is contained in:
2025-09-02 23:50:19 +01:00
parent 6c5922bb5e
commit 4552b8c969
64 changed files with 1196 additions and 1279 deletions
+6 -6
View File
@@ -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;