Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
inoas committed May 29, 2024
1 parent 40178fc commit f0e116d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/cake/query/cond.gleam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// // TODO: CASE expressions for WHERE, SELECT and others?

//
// pub type Case {
// SimpleCase(base: CaseValue, matches: List(CaseValue), otherwise: CaseValue)
// BooleanCase(
Expand All @@ -9,24 +9,24 @@
// )
// ComplexCase(branches: List(CaseWhen), otherwise: CaseValue)
// }

//
// pub type CaseWhen {
// CaseWhen(condition: CaseBoolExpression, result: CaseValue)
// }

//
// pub type CaseBoolExpression {
// CaseBoolExpression(
// value_a: CaseValue,
// operator: CaseOperator,
// 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)
Expand Down

0 comments on commit f0e116d

Please sign in to comment.