-- name: GetUserByNickname :one
SELECT *
FROM users
WHERE nickname = sqlc.arg('nickname');

-- name: CreateNewUser :one
INSERT 
INTO users (passhash, nickname) 
VALUES (sqlc.arg(passhash), sqlc.arg(nickname))
RETURNING id;

