Skip to content

Releases: SeaQL/sea-orm

1.0.0-rc.4

03 May 08:08
0798bf2
Compare
Choose a tag to compare
1.0.0-rc.4 Pre-release
Pre-release

Enhancements

  • Added QueryResult::column_names #2148
  • [sea-orm-macro] Add @generated in generated code #2199

Upgrades

  • Upgrade sea-query to 0.31.0-rc.6
  • Upgrade sea-schema to 0.15.0-rc.6

House Keeping

  • Reduce warnings in integration tests #2177

1.0.0-rc.3

26 Mar 16:23
cdf216c
Compare
Choose a tag to compare
1.0.0-rc.3 Pre-release
Pre-release

Enhancements

  • [sea-orm-macro] Qualify traits in DeriveActiveModel macro #1665

1.0.0-rc.2

15 Mar 23:41
Compare
Choose a tag to compare
1.0.0-rc.2 Pre-release
Pre-release

Breaking Changes

  • Updated Strum to version 0.26 #2088
  • Renamed ConnectOptions::pool_options() to ConnectOptions::sqlx_pool_options() #2145
  • Made sqlx_common private, hiding sqlx_error_to_xxx_err #2145

Enhancements

  • [sea-orm-cli] Fix migrate generate on empty mod.rs files #2064
  • DerivePartialModel macro attribute entity now supports syn::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 to 0.15.0-rc.3

House keeping

  • Improved Actix example to return 404 not found on unexpected inputs #2140
  • Re-enable rocket_okapi example #2136

0.12.15

15 Mar 23:48
Compare
Choose a tag to compare

Enhancements

  • DerivePartialModel macro attribute entity now supports syn::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

06 Feb 06:29
42553b6
Compare
Choose a tag to compare
1.0.0-rc.1 Pre-release
Pre-release

New Features

  • [sea-orm-migration] schema helper #2099

Breaking Changes

  • Rework SQLite type mappings #2078
  • Updated sea-query to 0.31

0.12.14

05 Feb 09:58
Compare
Choose a tag to compare
  • Added feature flag sqlite-use-returning-for-3_35 to use SQLite's returning #2070
  • Added Loco example #2092

0.12.12

22 Jan 10:08
Compare
Choose a tag to compare

Bug Fixes

  • [sea-orm-cli] Fix entity generation for non-alphanumeric enum variants #1821
  • [sea-orm-cli] Fix entity generation for relations with composite keys #2071

Enhancements

  • Added ConnectOptions::test_before_acquire

0.12.11

14 Jan 16:28
Compare
Choose a tag to compare

New Features

  • Added desc to Cursor paginator #2037

Enhancements

  • Improve query performance of Paginator's COUNT 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

14 Dec 23:56
Compare
Choose a tag to compare

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 and is_not_in #2002

Upgrades

0.12.9

08 Dec 15:09
Compare
Choose a tag to compare

Enhancements

  • Add source annotations to errors #1999

Upgrades