added initial roadmap and implementation
This commit is contained in:
7
trigger.sql
Normal file
7
trigger.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
CREATE OR REPLACE FUNCTION madbase_realtime.broadcast_changes() RETURNS trigger AS $$
|
||||
BEGIN
|
||||
RAISE WARNING 'Trigger Fired by %', current_user;
|
||||
PERFORM pg_notify('madbase_realtime', '{"test": "trigger"}');
|
||||
RETURN NEW;
|
||||
END;
|
||||
$$ LANGUAGE plpgsql;
|
||||
Reference in New Issue
Block a user