pub async fn update<A>(
db: &Db,
active: A,
) -> Result<<<A as ActiveModelTrait>::Entity as EntityTrait>::Model, DataError>where
A: ActiveModelTrait + ActiveModelBehavior + Send,
<A::Entity as EntityTrait>::Model: IntoActiveModel<A>,Expand description
Update an existing row from an ActiveModel. Returns the updated model.
ยงErrors
Returns DataError::Database if the update fails.