English | 简体中文

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

BulkInsertOrUpdateStatementBuilder

open class BulkInsertOrUpdateStatementBuilder<T : BaseTable<*>> (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

item

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

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

onDuplicateKey

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

Specify the update assignments while any key conflict exists.

Inheritors

NameSummary

BulkInsertStatementBuilder

class BulkInsertStatementBuilder<T : BaseTable<*>> : 
    BulkInsertOrUpdateStatementBuilder<T>

DSL builder for bulk insert statements.