Skip to main content

SqliteOperation

Trait SqliteOperation 

Source
pub trait SqliteOperation<T>: Expressive<T>
where T: Into<AnySqliteType> + Send + Clone + 'static,
{ // 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§

Source

fn eq(&self, value: impl Expressive<T>) -> SqliteCondition
where Self: Sized,

field = value

Source

fn ne(&self, value: impl Expressive<T>) -> SqliteCondition
where Self: Sized,

field != value

Source

fn gt(&self, value: impl Expressive<T>) -> SqliteCondition
where Self: Sized,

field > value

Source

fn gte(&self, value: impl Expressive<T>) -> SqliteCondition
where Self: Sized,

field >= value

Source

fn lt(&self, value: impl Expressive<T>) -> SqliteCondition
where Self: Sized,

field < value

Source

fn lte(&self, value: impl Expressive<T>) -> SqliteCondition
where Self: Sized,

field <= value

Source

fn in_(&self, values: impl Expressive<T>) -> SqliteCondition
where Self: Sized,

field IN (values_expression)

Source

fn in_list<V: Into<T> + Clone>(&self, values: &[V]) -> SqliteCondition
where Self: Sized, T: Clone,

field IN (a, b, c) from a slice of scalar values

Source

fn cast(&self, type_name: &str) -> SqliteCondition
where Self: Sized,

CAST(expr AS type_name)

Source

fn is_null(&self) -> SqliteCondition
where Self: Sized,

field IS NULL

Source

fn is_not_null(&self) -> SqliteCondition
where Self: Sized,

field IS NOT NULL

Implementors§

Source§

impl<T, S> SqliteOperation<T> for S
where S: Expressive<T>, T: Into<AnySqliteType> + Send + Clone + 'static,

Blanket: any Expressive<T> where T: Into<AnyType> gets the operation trait for free.