Changelog

This commit is contained in:
Chris Tsang 2023-07-10 21:57:52 +08:00
parent 727d83c9d7
commit bdddb3163d

View File

@ -432,6 +432,13 @@ assert!(matches!(res, Err(DbErr::RecordNotInserted)));
let res = Entity::insert_many([..]).on_conflict(on).do_nothing().exec(db).await;
assert!(matches!(res, Ok(TryInsertResult::Conflicted)));
```
* Added `UpdateMany::exec_with_returning()` https://github.com/SeaQL/sea-orm/pull/1677
```rust
Entity::update_many()
.col_expr(Column::Values, Expr::expr(..))
.exec_with_returning(db)
.await
```
### Upgrades