English | 简体中文

api-docs / org.ktorm.support.mysql / BulkInsertOrUpdateStatementBuilder

BulkInsertOrUpdateStatementBuilder

class BulkInsertOrUpdateStatementBuilder<T : BaseTable<*>> : 
    BulkInsertStatementBuilder<T>
(source code)

DSL builder for bulk insert or update statements.

Constructors

NameSummary

<init>

BulkInsertOrUpdateStatementBuilder(table: T)

DSL builder for bulk insert or update statements.

Functions

NameSummary

onDuplicateKey

fun onDuplicateKey(
    block: BulkInsertOrUpdateOnDuplicateKeyClauseBuilder.(T) -> Unit
): Unit

Specify the update assignments while any key conflict exists.

Inherited Functions

NameSummary

item

fun item(block: AssignmentsBuilder.(T) -> Unit): Unit

Add the assignments of a new row to the bulk insert.

Extension Functions

NameSummary

eq

infix fun <T : Any> T.eq(
    expr: ColumnDeclaring<T>
): BinaryExpression<Boolean>

Equal operator, translated to = in SQL.

neq

infix fun <T : Any> T.neq(
    expr: ColumnDeclaring<T>
): BinaryExpression<Boolean>

Not-equal operator, translated to <> in SQL.

notEq

infix fun <T : Any> T.notEq(
    expr: ColumnDeclaring<T>
): BinaryExpression<Boolean>

Not-equal operator, translated to <> in SQL.