How to use NOTIFY without triggers or functions?

Hi!

As you may know, triggers and functions are not production ready within Supabase.
How would one go about getting notifications (for use in python) with the operation as a payload?

What I did was cur.execute(f"INSERT INTO mydb (model, img, multi_dl) VALUES ('{model}', '{img}', '{multi_dl}'); NOTIFY test, 'placeholder';")

I'd like the placeholder to be the operation I just executed (intert into...). Any ideas?
Was this page helpful?