Releases: SeaQL/sea-orm
Releases Β· SeaQL/sea-orm
0.3.1
Fixed Issues
Merged PRs
- Changed manual url parsing to use Url crate by @AngelOnFira in #253
- Test self referencing relation by @billy1624 in #256
- Unify case-transform using the same crate by @billy1624 in #264
- CI cleaning by @AngelOnFira in #263
- CI install sea-orm-cli in debug mode by @billy1624 in #265
New Contributors
- @AngelOnFira made their first contribution in #253
Full Changelog: 0.3.0...0.3.1
0.3.0
https://www.sea-ql.org/blog/2021-10-15-whats-new-in-0.3.0/
- Built-in Rocket support
ConnectOptions
let mut opt = ConnectOptions::new("protocol://username:password@host/database".to_owned());
opt.max_connections(100)
.min_connections(5)
.connect_timeout(Duration::from_secs(8))
.idle_timeout(Duration::from_secs(8));
let db = Database::connect(opt).await?;
- [#211] Throw error if none of the db rows are affected
assert_eq!(
Update::one(cake::ActiveModel {
name: Set("Cheese Cake".to_owned()),
..model.into_active_model()
})
.exec(&db)
.await,
Err(DbErr::RecordNotFound(
"None of the database rows are affected".to_owned()
))
);
assert_eq!(
Update::many(cake::Entity)
.col_expr(cake::Column::Name, Expr::value("Cheese Cake".to_owned()))
.filter(cake::Column::Id.eq(2))
.exec(&db)
.await,
Ok(UpdateResult { rows_affected: 0 })
);
- [#223]
ActiveValue::take()
&ActiveValue::into_value()
withoutunwrap()
- [#205] Drop
Default
trait bound ofPrimaryKeyTrait::ValueType
- [#222] Transaction & streaming
- [#210] Update
ActiveModelBehavior
API - [#240] Add derive
DeriveIntoActiveModel
andIntoActiveValue
trait - [#237] Introduce optional serde support for model code generation
- [#246] Add
#[automatically_derived]
to all derived implementations
0.2.6
0.2.5
0.2.4
https://www.sea-ql.org/blog/2021-10-01-whats-new-in-0.2.4/
- [[#186]] [sea-orm-cli] Foreign key handling
- [[#191]] [sea-orm-cli] Unique key handling
- [[#182]]
find_linked
join with alias - [[#202]] Accept both
postgres://
andpostgresql://
- [[#208]] Support feteching T, (T, U), (T, U, P) etc
- [[#209]] Rename column name & column enum variant
- [[#207]] Support
chrono::NaiveDate
&chrono::NaiveTime
- Support
Condition::not
(from sea-query)