summaryrefslogtreecommitdiff
path: root/sql/users.sql
blob: 2e1d997ba66687e7b57af0574446d8c87eee4544 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
-- name: GetUsers :many
SELECT *
  FROM users;

-- name: GetUserByName :one
SELECT *
  FROM users
 WHERE LOWER(name) = LOWER($1);

-- name: GetUserById :one
SELECT *
  FROM users
 WHERE id = $1;