pub struct QueryBuilder { /* private fields */ }
Trait Implementations§
Source§impl Clone for QueryBuilder
impl Clone for QueryBuilder
Source§fn clone(&self) -> QueryBuilder
fn clone(&self) -> QueryBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for QueryBuilder
impl Debug for QueryBuilder
Source§impl Default for QueryBuilder
impl Default for QueryBuilder
Source§fn default() -> QueryBuilder
fn default() -> QueryBuilder
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for QueryBuilder
impl<'de> Deserialize<'de> for QueryBuilder
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JoinMethods for QueryBuilder
impl JoinMethods for QueryBuilder
fn join(&mut self, table: &str, on: impl FnOnce(&mut JoinBuilder))
fn inner_join(&mut self, table: &str, on: impl FnOnce(&mut JoinBuilder))
fn left_join(&mut self, table: &str, on: impl FnOnce(&mut JoinBuilder))
fn right_join(&mut self, table: &str, on: impl FnOnce(&mut JoinBuilder))
fn left_outer_join(&mut self, table: &str, on: impl FnOnce(&mut JoinBuilder))
fn right_outer_join(&mut self, table: &str, on: impl FnOnce(&mut JoinBuilder))
fn full_outer_join(&mut self, table: &str, on: impl FnOnce(&mut JoinBuilder))
fn cross_join(&mut self, table: &str, on: impl FnOnce(&mut JoinBuilder))
fn raw_join(&mut self, raw: &str, val: Option<Vec<Value>>)
Source§impl QueryCommon for QueryBuilder
impl QueryCommon for QueryBuilder
fn limit(&mut self, limit: usize) -> &mut QueryBuilder
fn offset(&mut self, offset: usize) -> &mut QueryBuilder
fn group_by(&mut self, column: Vec<&str>) -> &mut QueryBuilder
fn group_by_raw( &mut self, sql: &str, val: Option<Vec<Value>>, ) -> &mut QueryBuilder
fn order_by(&mut self, column: &str, order: &str) -> &mut QueryBuilder
fn order_by_raw( &mut self, sql: &str, val: Option<Vec<Value>>, ) -> &mut QueryBuilder
Source§impl Serialize for QueryBuilder
impl Serialize for QueryBuilder
Source§impl WhereClauses for QueryBuilder
impl WhereClauses for QueryBuilder
fn where_clause( &mut self, column: &str, operator: Operator, 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_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_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
Auto Trait Implementations§
impl Freeze for QueryBuilder
impl RefUnwindSafe for QueryBuilder
impl Send for QueryBuilder
impl Sync for QueryBuilder
impl Unpin for QueryBuilder
impl UnwindSafe for QueryBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more