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
IntoConditionforRelationDef#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
PgVectorcodegen #2589
Bug fixes
- Quote type properly in
AsEnumcasting #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
heckto0.5#2218 - Upgrade
sea-queryto0.32.5 - Upgrade
sea-schemato0.16.2