First pass of authentication
This commit is contained in:
parent
c943864edc
commit
01c6e9de87
15 changed files with 311 additions and 42 deletions
|
|
@ -1,5 +1,8 @@
|
|||
-- name: SelectUserByUsername :one
|
||||
SELECT * FROM users WHERE username = ?;
|
||||
SELECT * FROM users WHERE username = ? LIMIT 1;
|
||||
|
||||
-- name: SelectUserByID :one
|
||||
SELECT * FROM users WHERE id = ? LIMIT 1;
|
||||
|
||||
-- name: InsertUser :one
|
||||
INSERT INTO users (username, password) VALUES (?, ?) RETURNING id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue