ci(app): config changes to bruno and incoming sqls

This commit is contained in:
2025-10-16 14:34:58 -05:00
parent 38edc6214b
commit f264c98fbf
13 changed files with 1638 additions and 189 deletions

View File

@@ -0,0 +1,12 @@
CREATE OR REPLACE FUNCTION notify_new_log()
RETURNS trigger AS $$
BEGIN
PERFORM pg_notify('logs_channel', row_to_json(NEW)::text);
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
CREATE TRIGGER logs_notify_trigger
AFTER INSERT ON logs
FOR EACH ROW
EXECUTE FUNCTION notify_new_log();