English | 简体中文

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

InsertOrUpdateStatementBuilder

class InsertOrUpdateStatementBuilder : 
    PostgreSqlAssignmentsBuilder
(source code)

DSL builder for insert or update statements.

Constructors

NameSummary

<init>

InsertOrUpdateStatementBuilder()

DSL builder for insert or update statements.

Functions

NameSummary

onConflict

fun onConflict(
    vararg columns: Column<*>,
    block: InsertOrUpdateOnConflictClauseBuilder.() -> Unit
): Unit

Specify the update assignments while any key conflict exists.

onDuplicateKey

fun onDuplicateKey(
    vararg columns: Column<*>,
    block: AssignmentsBuilder.() -> Unit
): Unit

Specify the update assignments while any key conflict exists.