refactor: hemar: logs

This commit is contained in:
2025-04-23 19:14:29 +00:00
parent e55437b856
commit e800f11103
3 changed files with 105 additions and 14 deletions

View File

@@ -20,7 +20,27 @@ CREATE SCHEMA hemar;
-- $hemar$
-- );
-- ```
CREATE FUNCTION "hemar"."render"("declare" json, "template" text)
CREATE FUNCTION "hemar"."render"("declare" jsonb, "template" text)
RETURNS text
AS 'hemar', 'render'
LANGUAGE C STRICT;
AS 'hemar', 'pg_render'
LANGUAGE C STRICT;
CREATE FUNCTION "hemar"."test_log"()
RETURNS void
AS 'hemar', 'pg_test_log'
LANGUAGE C STRICT;
CREATE FUNCTION "hemar"."test_log_2"(text, text)
RETURNS void
AS 'hemar', 'pg_test_log_2'
LANGUAGE C STRICT;
CREATE FUNCTION "hemar"."test_log_3"(name1 text, name2 text)
RETURNS void
AS 'hemar', 'pg_test_log_2'
LANGUAGE C STRICT;
CREATE FUNCTION "hemar"."template_parse"(text)
RETURNS void
AS 'hemar', 'pg_template_parse'
LANGUAGE C STRICT;