summaryrefslogtreecommitdiff
path: root/sql/users.sql
blob: 9f1b5eff764247edcdf116bd19169ac50cee8d60 (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(?);

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