pub struct UpdateDyn<Table, Set> { /* private fields */ }Expand description
A dynamic UPDATE statement builder using string-based column names.
For compile-time validated queries, use Update from builder::typed.
Implementations§
Source§impl UpdateDyn<HasTable, NoSet>
impl UpdateDyn<HasTable, NoSet>
Sourcepub fn set<T: ToSqlValue>(
self,
column: &str,
value: T,
) -> UpdateDyn<HasTable, HasSet>
pub fn set<T: ToSqlValue>( self, column: &str, value: T, ) -> UpdateDyn<HasTable, HasSet>
Adds a SET assignment.
Source§impl UpdateDyn<HasTable, HasSet>
impl UpdateDyn<HasTable, HasSet>
Sourcepub fn set<T: ToSqlValue>(self, column: &str, value: T) -> Self
pub fn set<T: ToSqlValue>(self, column: &str, value: T) -> Self
Adds another SET assignment.
Sourcepub fn where_clause(self, expr: ExprBuilder) -> Self
pub fn where_clause(self, expr: ExprBuilder) -> Self
Adds a WHERE clause.
Trait Implementations§
Auto Trait Implementations§
impl<Table, Set> Freeze for UpdateDyn<Table, Set>
impl<Table, Set> RefUnwindSafe for UpdateDyn<Table, Set>where
Table: RefUnwindSafe,
Set: RefUnwindSafe,
impl<Table, Set> Send for UpdateDyn<Table, Set>
impl<Table, Set> Sync for UpdateDyn<Table, Set>
impl<Table, Set> Unpin for UpdateDyn<Table, Set>
impl<Table, Set> UnwindSafe for UpdateDyn<Table, Set>where
Table: UnwindSafe,
Set: UnwindSafe,
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