pub struct Clause<'q, T> { /* private fields */ }Implementations§
Source§impl<'q, T> Clause<'q, T>
impl<'q, T> Clause<'q, T>
Source§impl<'q> Clause<'q, Condition>
impl<'q> Clause<'q, Condition>
pub fn cast(self, sql_type: &str) -> Clause<'q, Condition>
pub fn and_col(self, column: &str) -> Clause<'q, Column>
pub fn or_col(self, column: &str) -> Clause<'q, Column>
pub fn and_cond(self, cond: Clause<'q, Condition>) -> Clause<'q, Condition>
pub fn or_cond(self, cond: Clause<'q, Condition>) -> Clause<'q, Condition>
Source§impl<'q> Clause<'q, Delete>
impl<'q> Clause<'q, Delete>
pub fn where_col( self, column: &str, value: Clause<'q, Condition>, ) -> Clause<'q, DeleteWhere>
pub fn where_cond(self, cond: Clause<'q, Condition>) -> Clause<'q, DeleteWhere>
Source§impl<'q> Clause<'q, DeleteWhere>
impl<'q> Clause<'q, DeleteWhere>
Source§impl<'q> Clause<'q, Insert>
impl<'q> Clause<'q, Insert>
pub fn on_conflict_do_nothing(self) -> Clause<'q, ()>
pub fn on_conflict(self, cols: Clause<'q, Column>) -> OnConflictHandle<'q>
Source§impl<'q> Clause<'q, Select>
impl<'q> Clause<'q, Select>
Source§impl<'q> Clause<'q, From>
impl<'q> Clause<'q, From>
pub fn join( self, table: &str, join_method: Clause<'q, Join>, ) -> Clause<'q, From>
pub fn left_join( self, table: &str, join_method: Clause<'q, Join>, ) -> Clause<'q, From>
pub fn left_outer_join( self, table: &str, join_method: Clause<'q, Join>, ) -> Clause<'q, From>
pub fn right_join( self, table: &str, join_method: Clause<'q, Join>, ) -> Clause<'q, From>
pub fn right_outer_join( self, table: &str, join_method: Clause<'q, Join>, ) -> Clause<'q, From>
pub fn where_col( self, name: &str, condition: Clause<'q, Condition>, ) -> Clause<'q, Where>
pub fn where_cond(self, condition: Clause<'q, Condition>) -> Clause<'q, Where>
pub fn limit(self, limit: &'q i64) -> Clause<'q, ()>
pub fn offset(self, offset: &'q i64) -> Clause<'q, ()>
Source§impl<'q> Clause<'q, Where>
impl<'q> Clause<'q, Where>
pub fn and( self, name: &str, condition: Clause<'q, Condition>, ) -> Clause<'q, Where>
pub fn or( self, name: &str, condition: Clause<'q, Condition>, ) -> Clause<'q, Where>
pub fn and_nest(self, clause: Clause<'q, Condition>) -> Clause<'q, Where>
pub fn or_nest(self, clause: Clause<'q, Condition>) -> Clause<'q, Where>
pub fn order_by_cols(self, columns: &[&str]) -> Clause<'q, Order>
Source§impl<'q> Clause<'q, UpdateSet>
impl<'q> Clause<'q, UpdateSet>
pub fn where_col( self, name: &str, condition: Clause<'q, Condition>, ) -> Clause<'q, UpdateWhere>
pub fn where_cond( self, condition: Clause<'q, Condition>, ) -> Clause<'q, UpdateWhere>
Source§impl<'q> Clause<'q, UpdateWhere>
impl<'q> Clause<'q, UpdateWhere>
pub fn and(self, condition: Clause<'q, Condition>) -> Clause<'q, UpdateWhere>
pub fn or(self, condition: Clause<'q, Condition>) -> Clause<'q, UpdateWhere>
Source§impl<'q> Clause<'q, Column>
impl<'q> Clause<'q, Column>
Sourcepub fn between<T: ToSql + Sync + 'q>(
self,
low: &'q T,
high: &'q T,
) -> Clause<'q, Condition>
pub fn between<T: ToSql + Sync + 'q>( self, low: &'q T, high: &'q T, ) -> Clause<'q, Condition>
pub fn is_true(self) -> Clause<'q, Condition>
pub fn is_false(self) -> Clause<'q, Condition>
pub fn is_null(self) -> Clause<'q, Condition>
pub fn is_not_null(self) -> Clause<'q, Condition>
Sourcepub fn coalesce_raw(self, value: &str) -> Self
pub fn coalesce_raw(self, value: &str) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'q, T> Freeze for Clause<'q, T>
impl<'q, T> !RefUnwindSafe for Clause<'q, T>
impl<'q, T> Send for Clause<'q, T>where
T: Send,
impl<'q, T> Sync for Clause<'q, T>where
T: Sync,
impl<'q, T> Unpin for Clause<'q, T>where
T: Unpin,
impl<'q, T> UnsafeUnpin for Clause<'q, T>
impl<'q, T> !UnwindSafe for Clause<'q, T>
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