UpsertRequestBuilder
class UpsertRequestBuilder(propertyConversionMethod: PropertyConversionMethod) : InsertRequestBuilder(source)
Request builder for PostgrestQueryBuilder.upsert
Properties
Link copied to clipboard
Make missing fields default to null
. Otherwise, use the default value for the column. This only applies when inserting new rows, not when merging with existing rows under
Link copied to clipboard
If true
, duplicate rows are ignored. If false
, duplicate rows are merged with existing rows.
Link copied to clipboard
Comma-separated UNIQUE column(s) to specify how duplicate rows are determined. Two rows are duplicates if all the onConflict
columns are equal.
Functions
Link copied to clipboard
Setting count allows to use PostgrestResult.countOrNull to get the total amount of items in the database.
Link copied to clipboard
Adds a filter to the postgrest request.