All Versions
31
Latest Version
Avg Release Cycle
19 days
Latest Release
-

Changelog History
Page 3

  • v0.3.0 Changes

    October 15, 2021

    https://www.sea-ql.org/SeaORM/blog/2021-10-15-whats-new-in-0.3.0

    • ๐Ÿ‘ Built-in Rocket support
    • ConnectOptions
    let mut opt = ConnectOptions::new("protocol://username:[email protected]/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()
        ))
    );
    
    // update many remains the same
    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() without unwrap()
    • 0๏ธโƒฃ [#205] Drop Default trait bound of PrimaryKeyTrait::ValueType
    • [#222] Transaction & streaming
    • โšก๏ธ [#210] Update ActiveModelBehavior API
    • [#240] Add derive DeriveIntoActiveModel and IntoActiveValue trait
    • ๐Ÿ‘ [#237] Introduce optional serde support for model code generation
    • [#246] Add #[automatically_derived] to all derived implementations
  • v0.2.6 Changes

    October 09, 2021
    • [#224] [sea-orm-cli] Date & Time column type mapping
    • Escape rust keywords with r# raw identifier
  • v0.2.5 Changes

    October 06, 2021
    • [#227] Resolve "Inserting actual none value of Option results in panic"
    • [#219] [sea-orm-cli] Add --tables option
    • [#189] Add debug_query and debug_query_stmt macro
  • v0.2.4 Changes

    October 01, 2021

    https://www.sea-ql.org/SeaORM/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:// and postgresql://
    • ๐Ÿ‘ [#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)
  • v0.2.3 Changes

    September 22, 2021
    • ๐Ÿ‘ฏ [#152] DatabaseConnection impl Clone
    • [#175] Impl TryGetableMany for different types of generics
    • Codegen TimestampWithTimeZone fixup
  • v0.2.2 Changes

    September 18, 2021
    • [#105] Compact entity format
    • โšก๏ธ [#132] Add ActiveModel insert & update
    • โšก๏ธ [#129] Add set method to UpdateMany
    • ๐Ÿ”’ [#118] Initial lock support
    • [#167] Add FromQueryResult::find_by_statement
  • v0.2.1 Changes

    September 04, 2021
    • โšก๏ธ Update dependencies
  • v0.2.0 Changes

    September 03, 2021
    • [#37] Rocket example
    • ๐ŸŒฒ [#114] log crate and env-logger
    • [#103] InsertResult to return the primary key's type
    • [#89] Represent several relations between same types by Linked
    • โœ… [#59] Transforming an Entity into TableCreateStatement
  • v0.1.3 Changes

    August 30, 2021
    • ๐Ÿšš [#108] Remove impl TryGetable for Option
  • v0.1.2 Changes

    August 23, 2021
    • ๐Ÿ‘ [#68] Added DateTimeWithTimeZone as supported attribute type
    • [#70] Generate arbitrary named entity
    • [#80] Custom column name
    • ๐Ÿ‘ [#81] Support join on multiple columns
    • [#99] Implement FromStr for ColumnTrait