Struct sqlx_models_parser::ast::Case [−][src]
pub struct Case {
pub operand: Option<Box<Expr>>,
pub conditions: Vec<Expr>,
pub results: Vec<Expr>,
pub else_result: Option<Box<Expr>>,
}Expand description
CASE [<operand>] WHEN <condition> THEN <result> ... [ELSE <result>] END
Note we only recognize a complete single expression as <condition>,
not < 0 nor 1, 2, 3 as allowed in a <simple when clause> per
https://jakewheat.github.io/sql-overview/sql-2011-foundation-grammar.html#simple-when-clause
Fields
operand: Option<Box<Expr>>conditions: Vec<Expr>results: Vec<Expr>else_result: Option<Box<Expr>>Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Case
impl UnwindSafe for Case
Blanket Implementations
Mutably borrows from an owned value. Read more