1
0
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:
Kyle Spearrin
2019-01-15 21:55:42 -05:00
parent 8596ba2caa
commit 84800da1fb
5 changed files with 133 additions and 1 deletions

View 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$;