English | 简体中文

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

InsertOrUpdateStatementBuilder

class InsertOrUpdateStatementBuilder : 
    MySqlAssignmentsBuilder
(source code)

DSL builder for insert or update statements.

Constructors

NameSummary

<init>

InsertOrUpdateStatementBuilder()

DSL builder for insert or update statements.

Functions

NameSummary

onDuplicateKey

fun onDuplicateKey(
    block: AssignmentsBuilder.() -> Unit
): Unit

Specify the update assignments while any key conflict exists.

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.