English | 简体中文

api-docs / org.ktorm.dsl / UpdateStatementBuilder

UpdateStatementBuilder

class UpdateStatementBuilder : AssignmentsBuilder (source code)

DSL builder for update statements.

Constructors

NameSummary

<init>

UpdateStatementBuilder()

DSL builder for update statements.

Inherited Properties

NameSummary

_assignments

val _assignments: <ERROR CLASS><ColumnAssignmentExpression<*>>

Functions

NameSummary

where

fun where(block: () -> ColumnDeclaring<Boolean>): Unit

Specify the where clause for this update statement.

Inherited Functions

NameSummary

set

fun <C : Any> set(
    column: Column<C>,
    expr: ColumnDeclaring<C>
): Unit

Assign the specific column’s value to another column or an expression’s result.

fun <C : Any> set(column: Column<C>, value: C?): Unit

Assign the specific column to a value.

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.