pub struct Updater { /* private fields */ }
Expand description
Defines an update operation
Implementations
sourceimpl Updater
impl Updater
sourcepub fn new(query: UpdateStatement) -> Self
pub fn new(query: UpdateStatement) -> Self
Instantiate an update using an UpdateStatement
sourcepub fn check_record_exists(self) -> Self
pub fn check_record_exists(self) -> Self
Check if a record exists on the ActiveModel to perform the update operation on
sourcepub fn exec<C>(
self,
db: &C
) -> impl Future<Output = Result<UpdateResult, DbErr>> + '_where
C: ConnectionTrait,
pub fn exec<C>(
self,
db: &C
) -> impl Future<Output = Result<UpdateResult, DbErr>> + '_where
C: ConnectionTrait,
Execute an update operation
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Updater
impl Send for Updater
impl Sync for Updater
impl Unpin for Updater
impl !UnwindSafe for Updater
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more