Enum mentat_query_sql::Constraint [] [src]

pub enum Constraint {
    Infix {
        op: Op,
        left: ColumnOrExpression,
        right: ColumnOrExpression,
    },
    Or {
        constraints: Vec<Constraint>,
    },
    And {
        constraints: Vec<Constraint>,
    },
    In {
        left: ColumnOrExpression,
        list: Vec<ColumnOrExpression>,
    },
    IsNull {
        value: ColumnOrExpression,
    },
    IsNotNull {
        value: ColumnOrExpression,
    },
    NotExists {
        subquery: TableOrSubquery,
    },
    TypeCheck {
        value: ColumnOrExpression,
        affinity: SQLTypeAffinity,
    },
}

Variants

Fields of Infix

Fields of Or

Fields of And

Fields of In

Fields of IsNull

Fields of IsNotNull

Fields of NotExists

Fields of TypeCheck

Methods

impl Constraint
[src]

Trait Implementations

impl QueryFragment for Constraint
[src]

Auto Trait Implementations

impl !Send for Constraint

impl !Sync for Constraint