-- name: CreateUser :execresult INSERT INTO grpcstudy.user (username, mobile, email, password) VALUES (?, ?, ?, ?); -- name: GetUserById :one SELECT * FROM grpcstudy.user WHERE id = ? LIMIT 1; -- name: GetUserByUsername :one SELECT * FROM grpcstudy.user WHERE username = ? LIMIT 1; -- name: GetUserByMobile :one SELECT * FROM grpcstudy.user WHERE mobile = ? LIMIT 1; -- name: ListUsers :many SELECT * FROM grpcstudy.user ORDER BY id DESC LIMIT ? OFFSET ?;