Skip to main content

update

Function update 

Source
pub async fn update<'e, E, DB, D, Ex>(
    dialect: &D,
    executor: Ex,
    entity: &E,
) -> Result<E, FletchError>
where E: Entity + for<'r> FromRow<'r, <DB as Database>::Row> + Send + Unpin, D: Dialect, DB: Database + DatabaseBindable, Ex: Executor<'e, Database = DB> + Send,
Expand description

Update an existing entity (matched by id) and return the updated row.