Releases: SeaQL/sea-orm
Releases Β· SeaQL/sea-orm
1.0.0-rc.4
1.0.0-rc.3
Enhancements
- [sea-orm-macro] Qualify traits in
DeriveActiveModel
macro #1665
1.0.0-rc.2
Breaking Changes
- Updated Strum to version 0.26 #2088
- Renamed
ConnectOptions::pool_options()
toConnectOptions::sqlx_pool_options()
#2145 - Made
sqlx_common
private, hidingsqlx_error_to_xxx_err
#2145
Enhancements
- [sea-orm-cli] Fix
migrate generate
on emptymod.rs
files #2064 DerivePartialModel
macro attributeentity
now supportssyn::Type
#2137
#[derive(DerivePartialModel)]
#[sea_orm(entity = "<entity::Model as ModelTrait>::Entity")]
struct EntityNameNotAIdent {
#[sea_orm(from_col = "foo2")]
_foo: i32,
#[sea_orm(from_col = "bar2")]
_bar: String,
}
- Added
RelationDef::from_alias()
#2146
assert_eq!(
cake::Entity::find()
.join_as(
JoinType::LeftJoin,
cake_filling::Relation::Cake.def().rev(),
cf.clone()
)
.join(
JoinType::LeftJoin,
cake_filling::Relation::Filling.def().from_alias(cf)
)
.build(DbBackend::MySql)
.to_string(),
[
"SELECT `cake`.`id`, `cake`.`name` FROM `cake`",
"LEFT JOIN `cake_filling` AS `cf` ON `cake`.`id` = `cf`.`cake_id`",
"LEFT JOIN `filling` ON `cf`.`filling_id` = `filling`.`id`",
]
.join(" ")
);
Upgrades
- Upgrade
sea-schema
to0.15.0-rc.3
House keeping
0.12.15
Enhancements
DerivePartialModel
macro attributeentity
now supportssyn::Type
#2137
#[derive(DerivePartialModel)]
#[sea_orm(entity = "<entity::Model as ModelTrait>::Entity")]
struct EntityNameNotAIdent {
#[sea_orm(from_col = "foo2")]
_foo: i32,
#[sea_orm(from_col = "bar2")]
_bar: String,
}
- Added
RelationDef::from_alias()
#2146
assert_eq!(
cake::Entity::find()
.join_as(
JoinType::LeftJoin,
cake_filling::Relation::Cake.def().rev(),
cf.clone()
)
.join(
JoinType::LeftJoin,
cake_filling::Relation::Filling.def().from_alias(cf)
)
.build(DbBackend::MySql)
.to_string(),
[
"SELECT `cake`.`id`, `cake`.`name` FROM `cake`",
"LEFT JOIN `cake_filling` AS `cf` ON `cake`.`id` = `cf`.`cake_id`",
"LEFT JOIN `filling` ON `cf`.`filling_id` = `filling`.`id`",
]
.join(" ")
);
1.0.0-rc.1
0.12.14
0.12.12
0.12.11
New Features
- Added
desc
toCursor
paginator #2037
Enhancements
- Improve query performance of
Paginator
'sCOUNT
query #2030 - Added SQLx slow statements logging to
ConnectOptions
#2055 - Added
QuerySelect::lock_with_behavior
#1867
Bug Fixes
- [sea-orm-macro] Qualify types in
DeriveValueType
macro #2054
House keeping
- Fix clippy warnings on 1.75 #2057
0.12.10
New Features
- [sea-orm-macro] Comment attribute for Entity (
#[sea_orm(comment = "action")]
);create_table_from_entity
supports comment #2009 - Added "proxy" (feature flag
proxy
) to database backend #1881, #2000
Enhancements
- Cast enums in
is_in
andis_not_in
#2002
Upgrades
- Updated
sea-query
to0.30.5
https://github.com/SeaQL/sea-query/releases/tag/0.30.5