Skip to main content

update

Function update 

Source
pub async fn update<A>(
    db: &Db,
    active: A,
) -> Result<<<A as ActiveModelTrait>::Entity as EntityTrait>::Model, DataError>
Expand description

Update an existing row from an ActiveModel. Returns the updated model.

ยงErrors

Returns DataError::Database if the update fails.