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