pub struct Clause<'q, T> { /* private fields */ }Implementations§
Source§impl<'q> Clause<'q, Condition>
impl<'q> Clause<'q, Condition>
pub fn cast_raw(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, 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, From>
impl<'q> Clause<'q, From>
pub fn join(self, table: &str) -> Clause<'q, Join>
pub fn left_join(self, table: &str) -> Clause<'q, Join>
pub fn left_outer_join(self, table: &str) -> Clause<'q, Join>
pub fn right_join(self, table: &str) -> Clause<'q, Join>
pub fn right_outer_join(self, table: &str) -> Clause<'q, Join>
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, Join>
impl<'q> Clause<'q, Join>
pub fn using(self, cols: Clause<'_, Column>) -> Clause<'q, From>
pub fn using_col(self, col_name: &str) -> Clause<'q, From>
pub fn using_cols(self, col_names: &[&str]) -> Clause<'q, From>
pub fn on(self, col1: &str, col2: &str) -> Clause<'q, From>
pub fn on_wrap(self, condition: Clause<'q, Condition>) -> Clause<'q, From>
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_wrap(self, clause: Clause<'q, Where>) -> Clause<'q, Where>
pub fn or_wrap(self, clause: Clause<'q, Where>) -> 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_cond( self, condition: Clause<'q, Condition>, ) -> Clause<'q, UpdateWhere>
pub fn or_cond( self, condition: Clause<'q, Condition>, ) -> Clause<'q, UpdateWhere>
pub fn and_wrap( self, condition: Clause<'q, Condition>, ) -> Clause<'q, UpdateWhere>
pub fn or_wrap( self, condition: Clause<'q, Condition>, ) -> Clause<'q, UpdateWhere>
Source§impl<'q> Clause<'q, Column>
impl<'q> Clause<'q, Column>
pub fn eq<T: ToSql + Sync + 'q>(self, value: &'q T) -> Clause<'q, Condition>
pub fn neq<T: ToSql + Sync + 'q>(self, value: &'q T) -> Clause<'q, Condition>
pub fn lt<T: ToSql + Sync + 'q>(self, value: &'q T) -> Clause<'q, Condition>
pub fn gt<T: ToSql + Sync + 'q>(self, value: &'q T) -> Clause<'q, Condition>
pub fn lte<T: ToSql + Sync + 'q>(self, value: &'q T) -> Clause<'q, Condition>
pub fn gte<T: ToSql + Sync + 'q>(self, value: &'q T) -> Clause<'q, Condition>
pub fn like<T: ToSql + Sync + 'q>(self, value: &'q T) -> Clause<'q, Condition>
pub fn ilike<T: ToSql + Sync + 'q>(self, value: &'q T) -> Clause<'q, Condition>
pub fn between<T: ToSql + Sync + 'q>( self, low: &'q T, high: &'q T, ) -> Clause<'q, Condition>
pub fn op<T: ToSql + Sync + 'q>( self, op: &str, value: &'q T, ) -> Clause<'q, Condition>
pub fn eq_true(self) -> Clause<'q, Condition>
pub fn not(self) -> Clause<'q, Condition>
pub fn null(self) -> Clause<'q, Condition>
pub fn not_null(self) -> Clause<'q, Condition>
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