chore: forgoten changes
This commit is contained in:
12
flake.nix
12
flake.nix
@@ -327,17 +327,7 @@
|
|||||||
ALTER DATABASE postgres SET client_min_messages TO DEBUG1;
|
ALTER DATABASE postgres SET client_min_messages TO DEBUG1;
|
||||||
CREATE EXTENSION "hemar";
|
CREATE EXTENSION "hemar";
|
||||||
|
|
||||||
\i ${./package/c/hemar/test/mod.sql}
|
\i ${./package/c/hemar/test}/mod.sql
|
||||||
|
|
||||||
-- SELECT hemar.parse('{{ zalupa }}');
|
|
||||||
-- SELECT hemar.render('{"a": "b"}'::JSONB, 'a {{ a }}');
|
|
||||||
-- SELECT hemar.render('{"a": ["b", "c"]}'::JSONB, 'a {{ for i in a do text }}');
|
|
||||||
-- SELECT hemar.render('{"a": {"g": ["b", "c"]}}'::JSONB, 'a {{ for i in a.g do {{ i }} }}');
|
|
||||||
-- SELECT hemar.render('{"a": {"b": [{"c": "a"}, {"c": "b"}]}}'::JSONB, 'a {{ for i in a.b do text }}');
|
|
||||||
-- SELECT hemar.render('{"a": {"g": ["b", "c"], "b": [{"c": "a"}, {"c": "b"}]}}'::JSONB, 'a {{ for i in a.g do text }}');
|
|
||||||
-- SELECT hemar.render('{"a": {"g": ["b", "c"]}}'::JSONB, 'a {{ for i in a.g do text {{ i }} text }}');
|
|
||||||
-- SELECT hemar.render('{"a": {"g": ["b", "c"]}}'::JSONB, 'a {{ a.g[1] }} {{ a.g[0] }}');
|
|
||||||
-- SELECT hemar.render('{"a": {"g": ["b", ["c", "d", "g"]]}}'::JSONB, 'a {{ a.g[1][2] }} {{ a.g[1][1] }} {{ a.g[1][0] }} {{ a.g[0] }}');
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user