api-docs / org.ktorm.dsl / CaseWhen
CaseWhen
data class CaseWhen<T : Any, R : Any>
(source code)Helper class used to build case-when SQL DSL. See CaseWhenExpression.
Constructors
Name | Summary |
---|---|
CaseWhen( Helper class used to build case-when SQL DSL. See CaseWhenExpression. |
Properties
Name | Summary |
---|---|
val elseClause: ColumnDeclaring<R>? | |
val operand: ColumnDeclaring<T>? | |
val whenClauses: List<Pair<ColumnDeclaring<T>, ColumnDeclaring<R>>> |
Extension Functions
Name | Summary |
---|---|
fun <T : Any, R : Any> CaseWhen<T, R>.ELSE( Specifies the else clause for the case-when DSL. | |
fun <R : Any> CaseWhen<*, R>.END(): CaseWhenExpression<R> Finishes the case-when DSL and returns a CaseWhenExpression. | |
infix fun <T : Any> T.eq( Equal operator, translated to | |
infix fun <T : Any> T.neq( Not-equal operator, translated to | |
infix fun <T : Any> T.notEq( Not-equal operator, translated to | |
fun <T : Any, R : Any> CaseWhen<T, R>.WHEN( fun <T : Any, R : Any> CaseWhen<T, R>.WHEN( Starts a when clause with the given condition. |