pub trait SqliteOperation<T>: Expressive<T>{
// Provided methods
fn eq(&self, value: impl Expressive<T>) -> SqliteCondition
where Self: Sized { ... }
fn ne(&self, value: impl Expressive<T>) -> SqliteCondition
where Self: Sized { ... }
fn gt(&self, value: impl Expressive<T>) -> SqliteCondition
where Self: Sized { ... }
fn gte(&self, value: impl Expressive<T>) -> SqliteCondition
where Self: Sized { ... }
fn lt(&self, value: impl Expressive<T>) -> SqliteCondition
where Self: Sized { ... }
fn lte(&self, value: impl Expressive<T>) -> SqliteCondition
where Self: Sized { ... }
fn in_(&self, values: impl Expressive<T>) -> SqliteCondition
where Self: Sized { ... }
fn in_list<V: Into<T> + Clone>(&self, values: &[V]) -> SqliteCondition
where Self: Sized,
T: Clone { ... }
fn cast(&self, type_name: &str) -> SqliteCondition
where Self: Sized { ... }
fn is_null(&self) -> SqliteCondition
where Self: Sized { ... }
fn is_not_null(&self) -> SqliteCondition
where Self: Sized { ... }
}Expand description
Vendor-specific operations producing the backend’s condition type.
Blanket-implemented for all Expressive<T> where T: Into<AnyType>.
The condition type itself implements Expressive<AnyType>, enabling
cross-type chaining like price.gt(10).eq(false).
Provided Methods§
Sourcefn eq(&self, value: impl Expressive<T>) -> SqliteConditionwhere
Self: Sized,
fn eq(&self, value: impl Expressive<T>) -> SqliteConditionwhere
Self: Sized,
field = value
Sourcefn ne(&self, value: impl Expressive<T>) -> SqliteConditionwhere
Self: Sized,
fn ne(&self, value: impl Expressive<T>) -> SqliteConditionwhere
Self: Sized,
field != value
Sourcefn gt(&self, value: impl Expressive<T>) -> SqliteConditionwhere
Self: Sized,
fn gt(&self, value: impl Expressive<T>) -> SqliteConditionwhere
Self: Sized,
field > value
Sourcefn gte(&self, value: impl Expressive<T>) -> SqliteConditionwhere
Self: Sized,
fn gte(&self, value: impl Expressive<T>) -> SqliteConditionwhere
Self: Sized,
field >= value
Sourcefn lt(&self, value: impl Expressive<T>) -> SqliteConditionwhere
Self: Sized,
fn lt(&self, value: impl Expressive<T>) -> SqliteConditionwhere
Self: Sized,
field < value
Sourcefn lte(&self, value: impl Expressive<T>) -> SqliteConditionwhere
Self: Sized,
fn lte(&self, value: impl Expressive<T>) -> SqliteConditionwhere
Self: Sized,
field <= value
Sourcefn in_(&self, values: impl Expressive<T>) -> SqliteConditionwhere
Self: Sized,
fn in_(&self, values: impl Expressive<T>) -> SqliteConditionwhere
Self: Sized,
field IN (values_expression)
Sourcefn in_list<V: Into<T> + Clone>(&self, values: &[V]) -> SqliteCondition
fn in_list<V: Into<T> + Clone>(&self, values: &[V]) -> SqliteCondition
field IN (a, b, c) from a slice of scalar values
Sourcefn cast(&self, type_name: &str) -> SqliteConditionwhere
Self: Sized,
fn cast(&self, type_name: &str) -> SqliteConditionwhere
Self: Sized,
CAST(expr AS type_name)
Sourcefn is_null(&self) -> SqliteConditionwhere
Self: Sized,
fn is_null(&self) -> SqliteConditionwhere
Self: Sized,
field IS NULL
Sourcefn is_not_null(&self) -> SqliteConditionwhere
Self: Sized,
fn is_not_null(&self) -> SqliteConditionwhere
Self: Sized,
field IS NOT NULL
Implementors§
impl<T, S> SqliteOperation<T> for S
Blanket: any Expressive<T> where T: Into<AnyType> gets the
operation trait for free.