mirror of
https://github.com/bitwarden/server.git
synced 2025-07-08 19:34:09 -05:00
set up postgresql repository
This commit is contained in:
14
src/Sql/PostgreSQL/Functions/user_read_by_id.sql
Normal file
14
src/Sql/PostgreSQL/Functions/user_read_by_id.sql
Normal file
@ -0,0 +1,14 @@
|
||||
CREATE OR REPLACE FUNCTION user_read_by_id
|
||||
(
|
||||
id uuid
|
||||
)
|
||||
RETURNS SETOF "user"
|
||||
LANGUAGE 'sql'
|
||||
AS $BODY$
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
"user"
|
||||
WHERE
|
||||
"id" = id;
|
||||
$BODY$;
|
Reference in New Issue
Block a user