English | 简体中文

api-docs / org.ktorm.dsl / AssignmentsBuilder

AssignmentsBuilder

open class AssignmentsBuilder (source code)

Base class of DSL builders, provide basic functions used to build assignments for insert or update DSL.

Constructors

NameSummary

<init>

AssignmentsBuilder()

Base class of DSL builders, provide basic functions used to build assignments for insert or update DSL.

Properties

NameSummary

_assignments

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

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

Assign the specific column to a value.

to

infix fun <C : Any> Column<C>.to(
    expr: ColumnDeclaring<C>
): Unit

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

infix fun <C : Any> Column<C>.to(value: C?): Unit

infix fun Column<*>.to(value: Any?): Unit

Assign the current column to a specific value.

Inheritors

NameSummary

MySqlAssignmentsBuilder

open class MySqlAssignmentsBuilder : AssignmentsBuilder

Base class of MySQL DSL builders, provide basic functions used to build assignments for insert or update DSL.

PostgreSqlAssignmentsBuilder

open class PostgreSqlAssignmentsBuilder : AssignmentsBuilder

Base class of PostgreSQL DSL builders, provide basic functions used to build assignments for insert or update DSL.

UpdateStatementBuilder

class UpdateStatementBuilder : AssignmentsBuilder

DSL builder for update statements.