InsertOrUpdateExpression

data class InsertOrUpdateExpression(val table: TableExpression, val assignments: List<ColumnAssignmentExpression<*>>, val updateAssignments: List<ColumnAssignmentExpression<*>> = emptyList(), val isLeafNode: Boolean = false, val extraProperties: Map<String, Any> = emptyMap()) : SqlExpression(source)

Insert or update expression, represents an insert statement with an on duplicate key update clause in MySQL.

Constructors

Link copied to clipboard
constructor(table: TableExpression, assignments: List<ColumnAssignmentExpression<*>>, updateAssignments: List<ColumnAssignmentExpression<*>> = emptyList(), isLeafNode: Boolean = false, extraProperties: Map<String, Any> = emptyMap())

Properties

Link copied to clipboard

the inserted column assignments.

Link copied to clipboard
open override val extraProperties: Map<String, Any>
Link copied to clipboard
open override val isLeafNode: Boolean = false
Link copied to clipboard

the table to be inserted.

Link copied to clipboard

the updated column assignments while any key conflict exists.