Enhancements
- Added
ActiveModelTrait::default_values
assert_eq!(
fruit::ActiveModel::default_values(),
fruit::ActiveModel {
id: Set(0),
name: Set("".into()),
cake_id: Set(None),
type_without_default: NotSet,
},
);
- Impl
IntoCondition for RelationDef #2587
// This allows using `RelationDef` directly where sea-query expects an `IntoCondition`
let query = Query::select()
.from(fruit::Entity)
.inner_join(cake::Entity, fruit::Relation::Cake.def())
.to_owned();
- Loader: retain only unique key values in the query condition #2569
- Add proxy transaction impl #2573
- [sea-orm-cli] Fix
PgVector codegen #2589
Bug fixes
- Quote type properly in
AsEnum casting #2570
assert_eq!(
lunch_set::Entity::find()
.select_only()
.column(lunch_set::Column::Tea)
.build(DbBackend::Postgres)
.to_string(),
r#"SELECT CAST("lunch_set"."tea" AS "text") FROM "lunch_set""#
// "text" is now quoted; will work for "text"[] as well
);
- Fix unicode string enum #2218
Upgrades
- Upgrade
heck to 0.5 #2218
- Upgrade
sea-query to 0.32.5
- Upgrade
sea-schema to 0.16.2