mirror of
https://github.com/1f349/lavender.git
synced 2025-01-21 06:06:30 +00:00
24 lines
399 B
SQL
24 lines
399 B
SQL
-- name: GetProfile :one
|
|
SELECT subject,
|
|
name,
|
|
picture,
|
|
website,
|
|
pronouns,
|
|
birthdate,
|
|
zone,
|
|
locale
|
|
FROM users
|
|
WHERE subject = ?;
|
|
|
|
-- name: ModifyProfile :exec
|
|
UPDATE users
|
|
SET name = ?,
|
|
picture = ?,
|
|
website = ?,
|
|
pronouns = ?,
|
|
birthdate = ?,
|
|
zone = ?,
|
|
locale = ?,
|
|
updated_at = ?
|
|
WHERE subject = ?;
|