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