Enum sqlpop::ast::Expr [] [src]

pub enum Expr {
    Between {
        lhs: Box<Expr>,
        not: bool,
        start: Box<Expr>,
        end: Box<Expr>,
    },
    Case {
        base: Option<Box<Expr>>,
        when_then_pairs: Vec<(Box<Expr>, Box<Expr>)>,
        else_expr: Option<Box<Expr>>,
    },
    Binary(Box<Expr>, OperatorBox<Expr>),
    Cast {
        expr: Box<Expr>,
        type_name: Type,
    },
    Collate(Box<Expr>, Name),
    DoublyQualified(NameNameName),
    Exists(Box<Select>),
    FunctionCall {
        name: String,
        distinctness: Option<Distinctness>,
        args: Option<Vec<Box<Expr>>>,
    },
    FunctionCallStar(String),
    Id(Name),
    InList {
        lhs: Box<Expr>,
        not: bool,
        rhs: Option<Vec<Box<Expr>>>,
    },
    InSelect {
        lhs: Box<Expr>,
        not: bool,
        rhs: Box<Select>,
    },
    InTable {
        lhs: Box<Expr>,
        not: bool,
        rhs: QualifiedName,
    },
    Isnull(Box<Expr>),
    Like {
        lhs: Box<Expr>,
        not: bool,
        op: LikeOperator,
        rhs: Box<Expr>,
        escape: Option<Box<Expr>>,
    },
    Literal(String),
    NotNull(Box<Expr>),
    NumericLiteral(String),
    Parenthesized(Box<Expr>),
    Qualified(NameName),
    Raise(ResolveTypeOption<String>),
    Subquery(Box<Select>),
    Unary(UnaryOperatorBox<Expr>),
    Variable(String),
}

Variants

Fields of Between

Fields of Case

Fields of Cast

Fields of FunctionCall

Fields of InList

Fields of InSelect

Fields of InTable

Fields of Like

Trait Implementations

impl Clone for Expr
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Expr
[src]

Formats the value using the given formatter.

impl PartialEq for Expr
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Expr
[src]