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§
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
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.