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
Infix
Fields of Infix
op: Op | |
left: ColumnOrExpression | |
right: ColumnOrExpression |
Or
Fields of Or
constraints: Vec<Constraint> |
And
Fields of And
constraints: Vec<Constraint> |
In
Fields of In
left: ColumnOrExpression | |
list: Vec<ColumnOrExpression> |
IsNull
Fields of IsNull
value: ColumnOrExpression |
IsNotNull
Fields of IsNotNull
value: ColumnOrExpression |
NotExists
Fields of NotExists
subquery: TableOrSubquery |
TypeCheck
Fields of TypeCheck
value: ColumnOrExpression | |
affinity: SQLTypeAffinity |
Methods
impl Constraint
[src]
pub fn not_equal(
left: ColumnOrExpression,
right: ColumnOrExpression
) -> Constraint
[src]
left: ColumnOrExpression,
right: ColumnOrExpression
) -> Constraint
pub fn equal(left: ColumnOrExpression, right: ColumnOrExpression) -> Constraint
[src]
pub fn fulltext_match(
left: ColumnOrExpression,
right: ColumnOrExpression
) -> Constraint
[src]
left: ColumnOrExpression,
right: ColumnOrExpression
) -> Constraint