call<T> method
Performs a stored procedure call.
fn is the name of the function to call.
params is sent as the request body: the JSON object of named
arguments, or the value of a function's sole unnamed json or jsonb
parameter, such as a list or a number.
When get is set to true, the function is called with a GET
request in read-only access mode, and params has to be a Map of
named arguments or null, which are sent as query parameters. A call
with an argument PostgREST would read as an option of the request, such
as limit, a null value, or a value it would read as a filter, such
as eq.foo, is sent as a POST instead, which is neither read-only
nor retried.
client.rpc('get_status', params: {'name_param': 'supabot'})
Implementation
PostgrestFilterBuilder<T> call<T>(
String fn, {
Object? params,
bool get = false,
}) =>
// ignore: invalid_use_of_internal_member
_client.rpcInSchema(fn, _schema, params: params, get: get);