Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return ModeledResponse for calling a Postgres Function/Stored Procedure #147

Closed
Katerlad opened this issue Mar 14, 2024 · 1 comment
Closed
Labels
enhancement New feature or request

Comments

@Katerlad
Copy link

Feature request

Quality of Life feature to allow "ModeledResponse" response to calling a Postgres Function/Stored Procedure.

  • Currently the response is of type "BaseResponse" and we have to manually cast to the model we want ourselves.

Describe the solution you'd like

A clear and concise description of what you want to happen.

Please create a way to easily convert the response of a Stored Procedure into a C# model! My Initial thought is to allow you to pass a type parameter with the function call!

ModeledResponse< MyModel > response = await supabase.rpc< MyModel>(null, params);

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

If implemented, this all started with poor documentation to the "calling postgres functions" located here https://supabase.com/docs/reference/csharp/rpc?example=call-a-stored-procedure

Please make sure to update documentation to reflect these changes if implemented.

@Katerlad Katerlad added the enhancement New feature or request label Mar 14, 2024
@acupofjose
Copy link
Contributor

Available in 0.16.1!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants