pub struct Updater { /* private fields */ }
Expand description
Defines an update operation
Implementations§
source§impl 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 async fn exec<C>(self, db: &C) -> Result<UpdateResult, DbErr>where
C: ConnectionTrait,
pub async fn exec<C>(self, db: &C) -> 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§
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