Skip to content

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

Closed
@Katerlad

Description

@Katerlad

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions