InsertOrUpdateExpression
data class InsertOrUpdateExpression(val table: TableExpression, val assignments: List<ColumnAssignmentExpression<*>>, val conflictColumns: List<ColumnExpression<*>> = emptyList(), val updateAssignments: List<ColumnAssignmentExpression<*>> = emptyList(), val where: ScalarExpression<Boolean>? = null, val returningColumns: List<ColumnExpression<*>> = emptyList(), val isLeafNode: Boolean = false, val extraProperties: Map<String, Any> = emptyMap()) : SqlExpression(source)
Insert or update expression, represents an insert statement with an on conflict (key) do update set
clause in SQLite.
Constructors
Link copied to clipboard
constructor(table: TableExpression, assignments: List<ColumnAssignmentExpression<*>>, conflictColumns: List<ColumnExpression<*>> = emptyList(), updateAssignments: List<ColumnAssignmentExpression<*>> = emptyList(), where: ScalarExpression<Boolean>? = null, returningColumns: List<ColumnExpression<*>> = emptyList(), isLeafNode: Boolean = false, extraProperties: Map<String, Any> = emptyMap())
Properties
Link copied to clipboard
the inserted column assignments.
Link copied to clipboard
the index columns on which the conflict may happen.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
the returning columns.
Link copied to clipboard
the table to be inserted.
Link copied to clipboard
the updated column assignments while any key conflict exists.
Link copied to clipboard
the condition whether the update assignments should be executed.