CaseWhen
data class CaseWhen<T : Any, R : Any>(val operand: ColumnDeclaring<T>?, val whenClauses: List<Pair<ColumnDeclaring<T>, ColumnDeclaring<R>>> = emptyList(), val elseClause: ColumnDeclaring<R>? = null)(source)
Helper class used to build case-when SQL DSL. See CaseWhenExpression.
Constructors
Link copied to clipboard
constructor(operand: ColumnDeclaring<T>?, whenClauses: List<Pair<ColumnDeclaring<T>, ColumnDeclaring<R>>> = emptyList(), elseClause: ColumnDeclaring<R>? = null)
Functions
Link copied to clipboard
Finishes the case-when DSL and returns a CaseWhenExpression.