1
Fork 0

core: Don't define database functions, implement them in Rust

This commit is contained in:
Steffo 2024-11-15 02:34:53 +01:00
parent 21842d9f80
commit 5a3d913933
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0
2 changed files with 0 additions and 16 deletions

View file

@ -1,7 +1,3 @@
DROP FUNCTION get_meta_properties;
DROP FUNCTION get_meta_links;
DROP FUNCTION get_meta_aliases;
DROP TABLE meta_properties;
DROP TABLE meta_link_properties;
DROP TABLE meta_links;

View file

@ -33,15 +33,3 @@ CREATE TABLE meta_properties (
PRIMARY KEY (id)
);
CREATE FUNCTION get_meta_aliases(BPCHAR) RETURNS SETOF meta_aliases AS $$
SELECT * FROM meta_aliases WHERE meta_aliases.pattern ILIKE $1;
$$ LANGUAGE SQL;
CREATE FUNCTION get_meta_links(BPCHAR) RETURNS SETOF meta_links AS $$
SELECT * FROM meta_links WHERE meta_links.pattern ILIKE $1;
$$ LANGUAGE SQL;
CREATE FUNCTION get_meta_properties(BPCHAR) RETURNS SETOF meta_properties AS $$
SELECT * FROM meta_properties WHERE meta_properties.pattern ILIKE $1;
$$ LANGUAGE SQL;