refactoring: move Query/Function logic into Requester class

This commit is contained in:
2019-06-14 17:09:52 +02:00
parent baa2976e80
commit 00d2fa335d
8 changed files with 235 additions and 160 deletions

View File

@@ -1,8 +1,8 @@
CREATE OR REPLACE FUNCTION test_function (name text, IN hi text default 'hello', out result json)
CREATE OR REPLACE FUNCTION test_function (name text default 'plop', IN hi text default 'hello', out result json)
LANGUAGE plpgsql
AS
$$
BEGIN
result = json_build_object('id', 2, 'name', 'test');
result = json_build_object('id', 3, 'name', 'test');
END;
$$