You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I have the need for writing (inserting, updating, deleting) on more than one table in the database, but with the current package API I cannot do those actions inside a single atomic request.
Describe the solution you'd like
I'd love one of the two solutions that I think would benefit Supabase (or both, why not?):
Create a Supabase Client method that allows me to bundle other method calls inside a single transaction that is guaranteed to run atomically and returns only a single error on failure;
Create a Supabase Client method that allows sending a raw (or formatted) query to the database using the current logged in user's permissions (RLS, for example).
Describe alternatives you've considered
I've considered using Edge Functions or Stored Procedures for this but in my case:
I'm not super versed in JS for the Edge Functions and I would have liked to keep this logic on device;
Stored Procedures can be hard to write for methods with many parameters (objects along side lists in my case).
Additional context
I'd appreciate the consideration and help.
If there are any other methods for achieving the same result please let me know.
Thank you.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I have the need for writing (inserting, updating, deleting) on more than one table in the database, but with the current package API I cannot do those actions inside a single atomic request.
Describe the solution you'd like
I'd love one of the two solutions that I think would benefit Supabase (or both, why not?):
Describe alternatives you've considered
I've considered using Edge Functions or Stored Procedures for this but in my case:
Additional context
I'd appreciate the consideration and help.
If there are any other methods for achieving the same result please let me know.
Thank you.
The text was updated successfully, but these errors were encountered: