mutationConflict

fun mutationConflict(mutationId: Long, table: String, operation: MutationOperation, rowKey: JsonObject, base: JsonObject = JsonObject(emptyMap()), local: JsonObject? = null, server: JsonObject? = null, changedOnServer: Set<String> = emptySet(), conflictingColumns: Set<String> = emptySet()): MutationConflict(source)

A conflict a replay found, as a ConflictResolver is shown one, for a test of the app's own resolver.

Parameters

mutationId

the write's id in the queue.

table

the table it targets.

rowKey

the primary-key values of the row.

base

the columns the write sets and the version column, as the device last saw the row.

local

the columns the write sets, with their values; null for a DELETE.

server

the server's row as the replay read it, in part; null when it is gone.

changedOnServer

the columns the write sets whose server value differs from base's.

conflictingColumns

of changedOnServer, those local sets to another value.