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 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