Struct leetcode_tui_rs::migrations::sea_orm::Updater
source · pub struct Updater { /* private fields */ }
Expand description
Defines an update operation
Implementations§
source§impl Updater
impl Updater
sourcepub fn new(query: UpdateStatement) -> Updater
pub fn new(query: UpdateStatement) -> Updater
Instantiate an update using an UpdateStatement
sourcepub fn check_record_exists(self) -> Updater
pub fn check_record_exists(self) -> Updater
Check if a record exists on the ActiveModel to perform the update operation on
sourcepub async fn exec<C>(
self,
db: &C
) -> impl Future<Output = Result<UpdateResult, DbErr>>where
C: ConnectionTrait,
pub async 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§
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