From f0e116d7d6d2ae0390bb1e683f816ed4270320e2 Mon Sep 17 00:00:00 2001 From: inoas Date: Thu, 30 May 2024 01:49:22 +0200 Subject: [PATCH] wip --- src/cake/query/cond.gleam | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cake/query/cond.gleam b/src/cake/query/cond.gleam index e1ed9c1..db1e238 100644 --- a/src/cake/query/cond.gleam +++ b/src/cake/query/cond.gleam @@ -1,5 +1,5 @@ // // TODO: CASE expressions for WHERE, SELECT and others? - +// // pub type Case { // SimpleCase(base: CaseValue, matches: List(CaseValue), otherwise: CaseValue) // BooleanCase( @@ -9,11 +9,11 @@ // ) // ComplexCase(branches: List(CaseWhen), otherwise: CaseValue) // } - +// // pub type CaseWhen { // CaseWhen(condition: CaseBoolExpression, result: CaseValue) // } - +// // pub type CaseBoolExpression { // CaseBoolExpression( // value_a: CaseValue, @@ -21,12 +21,12 @@ // value_b: CaseValue, // ) // } - +// // // These need to be specific enums I guess // pub type CaseOperator { // CaseOperator(String) // } - +// // pub type CaseValue { // CaseColumn(column: String) // CaseParam(param: Param)