Case

class Case(val value: Expression<*>? = null)

Represents an SQL function that allows the comparison of value to chained conditional clauses.

If value is not provided, each chained conditional will be evaluated independently.

Constructors

Link copied to clipboard
constructor(value: Expression<*>? = null)

Properties

Link copied to clipboard
val value: Expression<*>? = null

The value that is compared against every conditional expression.

Functions

Link copied to clipboard
fun <T> When(cond: Expression<Boolean>, result: Expression<T>): CaseWhen<T>

Adds a conditional expression with a result if the expression evaluates to true.