BulkInsertExpression

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

Bulk insert expression, represents a bulk insert statement in MySQL.

For example:

insert into table (column1, column2) values (?, ?), (?, ?), (?, ?)...
on duplicate key update ...

Constructors

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

Properties

Link copied to clipboard

column assignments of the bulk insert statement.

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 key conflict exists.