mirror of
https://github.com/status-im/open-bounty.git
synced 2025-01-11 18:14:25 +00:00
193 user exists query added
This commit is contained in:
parent
085e8ef844
commit
07bb457dfa
@ -17,6 +17,12 @@ WHERE NOT exists(SELECT 1
|
||||
WHERE id = :id)
|
||||
RETURNING id, login, name, email, avatar_url, address, created;
|
||||
|
||||
-- :name user-exists? :? :1
|
||||
-- :doc Checks where a user exists in the database.
|
||||
select 1
|
||||
from users u
|
||||
where u.id = :id;
|
||||
|
||||
-- :name update-user! :! :n
|
||||
-- :doc updates an existing user record
|
||||
UPDATE users
|
||||
|
Loading…
x
Reference in New Issue
Block a user