commonMain.io.github.jan.supabase.postgrest.query.request.UpsertRequestBuilder.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.query.PostgrestQueryBuilder
/**
* Request builder for [PostgrestQueryBuilder.upsert]
*/
class UpsertRequestBuilder(propertyConversionMethod: PropertyConversionMethod): InsertRequestBuilder(propertyConversionMethod) {
/**
* Comma-separated UNIQUE column(s) to specify how
* duplicate rows are determined. Two rows are duplicates if all the
* `onConflict` columns are equal.
*/
var onConflict: String? = null
/**
* If `true`, duplicate rows are ignored. If `false`, duplicate rows are merged with existing rows.
*/
var ignoreDuplicates: Boolean = false
}