ValueCase
Builder class for creating value-based CASE expressions where a specific value is compared against different conditions.
Parameters
T
The type of the value being compared
value
The expression whose value will be compared in WHEN clauses
Functions
Link copied to clipboard
Adds a WHEN clause that compares the case value against a literal condition.
Adds a WHEN clause that compares the case value against an expression condition.
Adds a WHEN clause that compares the case value against a literal condition with a literal result.
fun <R> When(cond: Expression<T>, result: R, resultType: IColumnType<R & Any>? = null): ValueCaseWhen<T, R>
Adds a WHEN clause that compares the case value against an expression condition with a literal result.