Trait WhereClauses

Source
pub trait WhereClauses {
Show 21 methods // Required methods fn where_clause( &mut self, column: &str, operator: Operator, value: Value, ) -> &mut Self; fn where_eq(&mut self, column: &str, value: Value) -> &mut Self; fn where_not_eq(&mut self, column: &str, value: Value) -> &mut Self; fn where_in(&mut self, column: &str, value: Vec<Value>) -> &mut Self; fn where_not_in(&mut self, column: &str, value: Vec<Value>) -> &mut Self; fn where_null(&mut self, column: &str) -> &mut Self; fn where_not_null(&mut self, column: &str) -> &mut Self; fn where_exists(&mut self, column: &str) -> &mut Self; fn where_not_exists(&mut self, column: &str) -> &mut Self; fn where_between(&mut self, column: &str, value: [Value; 2]) -> &mut Self; fn where_not_between( &mut self, column: &str, value: [Value; 2], ) -> &mut Self; fn where_like(&mut self, column: &str, value: Value) -> &mut Self; fn where_not_like(&mut self, column: &str, value: Value) -> &mut Self; fn where_subquery(&mut self, value: impl FnOnce(&mut QueryBuilder)); fn or(&mut self) -> &mut QueryBuilder; fn where_raw(&mut self, sql: &str, val: Option<Vec<Value>>) -> &mut Self; fn where_gt(&mut self, column: &str, value: Value) -> &mut Self; fn where_gte(&mut self, column: &str, value: Value) -> &mut Self; fn where_lt(&mut self, column: &str, value: Value) -> &mut Self; fn where_lte(&mut self, column: &str, value: Value) -> &mut Self; fn where_gtlt(&mut self, column: &str, value: Value) -> &mut Self;
}

Required Methods§

Source

fn where_clause( &mut self, column: &str, operator: Operator, value: Value, ) -> &mut Self

Source

fn where_eq(&mut self, column: &str, value: Value) -> &mut Self

Source

fn where_not_eq(&mut self, column: &str, value: Value) -> &mut Self

Source

fn where_in(&mut self, column: &str, value: Vec<Value>) -> &mut Self

Source

fn where_not_in(&mut self, column: &str, value: Vec<Value>) -> &mut Self

Source

fn where_null(&mut self, column: &str) -> &mut Self

Source

fn where_not_null(&mut self, column: &str) -> &mut Self

Source

fn where_exists(&mut self, column: &str) -> &mut Self

Source

fn where_not_exists(&mut self, column: &str) -> &mut Self

Source

fn where_between(&mut self, column: &str, value: [Value; 2]) -> &mut Self

Source

fn where_not_between(&mut self, column: &str, value: [Value; 2]) -> &mut Self

Source

fn where_like(&mut self, column: &str, value: Value) -> &mut Self

Source

fn where_not_like(&mut self, column: &str, value: Value) -> &mut Self

Source

fn where_subquery(&mut self, value: impl FnOnce(&mut QueryBuilder))

Source

fn or(&mut self) -> &mut QueryBuilder

Source

fn where_raw(&mut self, sql: &str, val: Option<Vec<Value>>) -> &mut Self

Source

fn where_gt(&mut self, column: &str, value: Value) -> &mut Self

Source

fn where_gte(&mut self, column: &str, value: Value) -> &mut Self

Source

fn where_lt(&mut self, column: &str, value: Value) -> &mut Self

Source

fn where_lte(&mut self, column: &str, value: Value) -> &mut Self

Source

fn where_gtlt(&mut self, column: &str, value: Value) -> &mut Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§