8 lines
189 B
SQL
8 lines
189 B
SQL
-- name: CreateUser :exec
|
|
INSERT INTO users (name) VALUES (?);
|
|
|
|
-- name: GetUserByName :one
|
|
SELECT * FROM users WHERE name = ?;
|
|
|
|
-- name: GetUserByID :one
|
|
SELECT * FROM users WHERE id = ?;
|