Trait chain_builder::WhereClauses
source · pub trait WhereClauses {
Show 16 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 FnMut(&mut QueryBuilder));
fn or(&mut self) -> &mut QueryBuilder;
fn where_raw(&mut self, sql: &str, val: Option<Vec<Value>>) -> &mut Self;
}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 FnMut(&mut QueryBuilder))
fn or(&mut self) -> &mut QueryBuilder
fn where_raw(&mut self, sql: &str, val: Option<Vec<Value>>) -> &mut Self
Object Safety§
This trait is not object safe.