Skip to content

upsert

//fluxbase-kotlin/io.github.nimbleflux.fluxbase.postgrest/QueryBuilder/upsert

[jvm]
suspend fun upsert(values: Map<String, Any?>): PostgrestResponse<T>

UPSERT (INSERT with conflict resolution). Port of upsert() in query-builder.ts:102. Adds the Prefer: resolution=merge-duplicates header to a POST.