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]
impl Constraint
pub fn not_equal(
left: ColumnOrExpression,
right: ColumnOrExpression
) -> Constraint
[src]
pub fn not_equal(
left: ColumnOrExpression,
right: ColumnOrExpression
) -> Constraint
pub fn equal(left: ColumnOrExpression, right: ColumnOrExpression) -> Constraint
[src]
pub fn equal(left: ColumnOrExpression, right: ColumnOrExpression) -> Constraint
pub fn fulltext_match(
left: ColumnOrExpression,
right: ColumnOrExpression
) -> Constraint
[src]
pub fn fulltext_match(
left: ColumnOrExpression,
right: ColumnOrExpression
) -> Constraint
Trait Implementations
impl QueryFragment for Constraint
[src]
impl QueryFragment for Constraint
fn push_sql(&self, out: &mut QueryBuilder) -> BuildQueryResult
[src]
fn push_sql(&self, out: &mut QueryBuilder) -> BuildQueryResult
Auto Trait Implementations
impl !Send for Constraint
impl !Send for Constraint
impl !Sync for Constraint
impl !Sync for Constraint