how to write supabase function for trigger: when u...
# help
s
how to write supabase function for trigger: when user joins make one row in authors table and when user's details update, update authors table and when user deletes, delete user
n
Hello @Studywithdesign! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User role so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ... menu) and select Leave Thread to unsubscribe from future updates. Want to change the title? Use the /title command! We have solved your problem? Click the button below to archive it.
g
Example 43.5 here https://www.postgresql.org/docs/current/plpgsql-trigger.html is probably what you need. It uses TG_OP in a single function to handle all three operations.
n
Studywithdesign (2022-05-02)
s
Can you please send me an example of it in supabase functions
Please