Create internal/app package for easy access to globals

This commit is contained in:
Abhishek Shroff
2024-07-28 22:33:07 -07:00
parent 1d750a8161
commit 06b293528d
9 changed files with 39 additions and 66 deletions
+2 -3
View File
@@ -1,10 +1,9 @@
-- name: CreateUser :one
-- name: CreateUser :exec
INSERT INTO users(
username, display_name, password_hash
) VALUES (
$1, $2, $3
)
RETURNING *;
);
-- name: UserByUsername :one
SELECT * from users WHERE username = $1;