New Features
- Support PgVector #2500
- Added
Insert::exec_with_returning_keys
&Insert::exec_with_returning_many
(Postgres only)
assert_eq!(
Entity::insert_many([
ActiveModel { id: NotSet, name: Set("two".into()) },
ActiveModel { id: NotSet, name: Set("three".into()) },
])
.exec_with_returning_many(db)
.await
.unwrap(),
[
Model { id: 2, name: "two".into() },
Model { id: 3, name: "three".into() },
]
);
assert_eq!(
cakes_bakers::Entity::insert_many([
cakes_bakers::ActiveModel {
cake_id: Set(1),
baker_id: Set(2),
},
cakes_bakers::ActiveModel {
cake_id: Set(2),
baker_id: Set(1),
},
])
.exec_with_returning_keys(db)
.await
.unwrap(),
[(1, 2), (2, 1)]
);
- Added
DeleteOne::exec_with_returning
&DeleteMany::exec_with_returning
#2432
Enhancements
- Expose underlying row types (e.g.
sqlx::postgres::PgRow
) #2265 - [sea-orm-cli] Added
acquire-timeout
option #2461 - [sea-orm-cli] Added
with-prelude
option #2322 - [sea-orm-cli] Added
impl-active-model-behavior
option #2487
Bug Fixes
- Fixed
seaography::register_active_enums
macro #2475
House keeping
- Remove
futures
crate, replace withfutures-util
#2466