lockserver/db/queries/users.sql

9 lines
189 B
MySQL
Raw Permalink Normal View History

-- name: CreateUser :exec
INSERT INTO users (name) VALUES (?);
-- name: GetUserByName :one
SELECT * FROM users WHERE name = ?;
-- name: GetUserByID :one
SELECT * FROM users WHERE id = ?;