mirror of
https://github.com/bitwarden/server
synced 2026-01-04 09:33:40 +00: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