You can call stored procedures as a "Remote Procedure Call".
That's a fancy way of saying that you can put some logic into your database then call it from anywhere. It's especially useful when the logic rarely changes - like password resets and updates.
rpc
with parameters, you have to provide a serializable value in the function parameter.The name of the function
Parameters to pass to the function. T can be any serializable type.
The HTTP method to use. Defaults to `RpcMethod.POST`
Additional configuration & filtering for the request.
supabase.postgrest.rpc("hello_world")
val rpcParams = City(name = "The Shire")
supabase.postgrest.rpc("echo_city", rpcParams)