I would like to point out that the realtime feature provided by Supabase is incredibly useful. I am seeking information on how to save a piece of data received in realtime to a local database. The data coming from Supabase is returned as NEW and OLD, and I would like to know how to access these values. Additionally, I need to determine the event type of this data (e.g., INSERT, UPDATE, or DELETE). Could you help me with this?
Saving Supabase Realtime Data to Local Database and Identifying Event Types
Actions & Logic
So far, I have successfully set up Supabase's realtime functionality and can receive data updates in realtime. However, I am unsure how to handle the incoming NEW and OLD values and differentiate between event types such as INSERT, UPDATE, or DELETE. I am also looking for the best approach to store this data in a local database efficiently.
Yes
1