commonMain.io.github.jan.supabase.postgrest.query.request.RpcRequestBuilder.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of postgrest-kt-jvm Show documentation
Show all versions of postgrest-kt-jvm Show documentation
Extends supabase-kt with a Postgrest Client
package io.github.jan.supabase.postgrest.query.request
import io.github.jan.supabase.postgrest.PropertyConversionMethod
import io.github.jan.supabase.postgrest.RpcMethod
import io.github.jan.supabase.postgrest.query.PostgrestRequestBuilder
/**
* Request builder for [Postgrest.rpcRequest]
*/
class RpcRequestBuilder(defaultSchema: String, propertyConversionMethod: PropertyConversionMethod): PostgrestRequestBuilder(propertyConversionMethod) {
/**
* The HTTP method to use. Default is POST
*/
var method: RpcMethod = RpcMethod.POST
/**
* The database schema
*/
var schema: String = defaultSchema
}