Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: SeaQL/sea-orm

0.3.1

23 Oct 08:11

Choose a tag to compare

Fixed Issues

  • Align case trasforms across derive macros #262
  • Added is_null and is_not_null to ColumnTrait #267

Merged PRs

New Contributors

Full Changelog: 0.3.0...0.3.1

0.3.0

15 Oct 18:11

Choose a tag to compare

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() without unwrap()
  • [#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

0.2.6

09 Oct 15:20

Choose a tag to compare

  • [#224] [sea-orm-cli] Date & Time column type mapping
  • Escape rust keywords with r# raw identifier

0.2.5

06 Oct 10:56

Choose a tag to compare

  • [#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

0.2.4

01 Oct 04:39

Choose a tag to compare

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:// 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)

0.2.3

22 Sep 10:09

Choose a tag to compare

  • [[#152]] DatabaseConnection impl Clone
  • [[#175]] Impl TryGetableMany for diffrent types of generics
  • Codegen TimestampWithTimeZone fixup

0.2.2

17 Sep 17:56

Choose a tag to compare

  • [[#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

0.2.1

04 Sep 14:19

Choose a tag to compare

  • Update dependencies

0.2.0

03 Sep 15:25

Choose a tag to compare

  • [[#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

0.1.3

03 Sep 07:07

Choose a tag to compare

  • [[#108]] Remove impl TryGetable for Option