WhenContinuation

data class WhenContinuation<T : Any, R : Any>(val parent: CaseWhen<T, R>, val condition: ColumnDeclaring<T>)(source)

Return type for WHEN function, call its extension function THEN to finish a SQL when clause.

Constructors

Link copied to clipboard
constructor(parent: CaseWhen<T, R>, condition: ColumnDeclaring<T>)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun <T : Any, R : Any> WhenContinuation<T, R>.THEN(result: ColumnDeclaring<R>): CaseWhen<T, R>
@JvmName(name = "firstTHEN")
fun <T : Any, R : Any> WhenContinuation<T, Nothing>.THEN(result: ColumnDeclaring<R>): CaseWhen<T, R>
inline fun <T : Any, R : Any> WhenContinuation<T, R>.THEN(result: R, sqlType: SqlType<R> = SqlType.of() ?: error("Cannot detect the argument's SqlType, please specify manually.")): CaseWhen<T, R>
@JvmName(name = "firstTHEN")
inline fun <T : Any, R : Any> WhenContinuation<T, Nothing>.THEN(result: R, sqlType: SqlType<R> = SqlType.of() ?: error("Cannot detect the argument's SqlType, please specify manually.")): CaseWhen<T, R>

Finishes the current when clause with the given result.