Thread
#exposed
    Daniel Skogquist Åborg

    Daniel Skogquist Åborg

    1 year ago
    Hi! Is there a built in case/when statement?
    Joel

    Joel

    1 year ago
    val expr = Expression.build {
      case()
        .When(MyTable.isFoo eq true, stringLiteral("foo")
        .Else(stringLiteral("bar"))
    }
    
    MyTable.slice(expr).selectAll().map { it[expr] }