Run in tx

This commit is contained in:
Abhishek Shroff
2024-08-07 22:07:46 +05:30
parent 51a1464138
commit 17a6d72754
4 changed files with 67 additions and 43 deletions
+9 -3
View File
@@ -29,10 +29,16 @@ SET
WHERE id = $2;
-- name: UpdateUserDirs :exec
-- name: UpdateUserRoot :exec
UPDATE users
SET
root = $1,
home = $2,
modified = NOW()
WHERE id = $3;
WHERE id = $2;
-- name: UpdateUserHome :exec
UPDATE users
SET
home = $1,
modified = NOW()
WHERE id = $2;