refactoring: replace procedure find_user_by_* to function

This commit is contained in:
flecomte committed 2019-07-26 16:18:31 +02:00
1 parent fc06965cda
commit 4ce81c6210
3 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
create or replace procedure find_user_by_id(in id uuid, inout resource json) language plpgsql as
create or replace function find_user_by_id(in id uuid, out resource json) language plpgsql as
$$
declare
_id alias for id;
@@ -9,4 +9,4 @@ begin
end;
$$;
-- drop procedure if exists find_user_by_id(uuid, inout json);
-- drop function if exists find_user_by_id(uuid, inout json);
@@ -1,4 +1,4 @@
create or replace procedure find_user_by_username(in username text, inout resource json) language plpgsql as
create or replace function find_user_by_username(in username text, out resource json) language plpgsql as
$$
declare
_username alias for username;
@@ -9,4 +9,4 @@ begin
end;
$$;
-- drop procedure if exists find_user_by_username(text, inout json);
-- drop function if exists find_user_by_username(text, out json);