rpc

abstract suspend fun rpc(function: String, request: RpcRequestBuilder.() -> Unit = {}): PostgrestResult(source)

Executes a database function

Parameters

function

The name of the function

request

Filter the result

Throws

if receiving an error response

HttpRequestTimeoutException

if the request timed out

HttpRequestException

on network related issues


abstract suspend fun rpc(function: String, parameters: JsonObject, request: RpcRequestBuilder.() -> Unit = {}): PostgrestResult(source)

Executes a database function

Parameters

function

The name of the function

parameters

The parameters for the function

request

Filter the result

Throws

if receiving an error response

HttpRequestTimeoutException

if the request timed out

HttpRequestException

on network related issues