Replies: 1 comment 6 replies
-
Are you talking about just vanilla SP inside of Postgres or calling SP via REST? For vanilla you really don't need Supabase docs, you just need Postgres docs. For SP via REST check out the PostgREST docs https://postgrest.org/en/v12/ For returning data I usually try to keep it simple, either a single "row" or a table. I believe you can get more fancy eg returning JSON with more irregular structures but I haven't needed to do that. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
The Documentation on the Supabase site for Stored Procedures(Edit: This is talking about the documentation for stored procedures on the C# Library located here https://supabase.com/docs/reference/csharp/rpc) , is very lack luster. It would be great to have best practices for return data, as when calling a stored procedure it is often to return a table that will be used in your application code.
What is the best way to get attention to this? Is this discussion a good place? or should I create an Issue.
Also, In the meantime does anyone have examples of their best practice for syntax when returning data from a stored procedure?
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions