Skip to content

Releases: SeaQL/sea-orm

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

0.12.8

04 Dec 11:25
Compare
Choose a tag to compare

Enhancements

  • Implement StatementBuilder for sea_query::WithQuery #1960

Upgrades

  • Upgrade axum example to 0.7 #1984

0.12.7

22 Nov 22:50
Compare
Choose a tag to compare

Enhancements

  • Added method expr_as_ that accepts self

Upgrades

0.12.6

13 Nov 18:15
Compare
Choose a tag to compare

New Features

  • Added #[sea_orm(skip)] for FromQueryResult derive macro #1954

Contributors

0.12.5

12 Nov 20:22
Compare
Choose a tag to compare

Bug Fixes

  • [sea-orm-cli] Fix duplicated active enum use statements on generated entities #1953
  • [sea-orm-cli] Added --enum-extra-derives #1934
  • [sea-orm-cli] Added --enum-extra-attributes #1952

Contributors

Full Changelog: 0.12.4...0.12.5

0.12.4

19 Oct 20:03
Compare
Choose a tag to compare

New Features

  • Add support for root JSON arrays #1898
    Now the following works (requires the json-array / postgres-array feature)!
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
#[sea_orm(table_name = "json_struct_vec")]
pub struct Model {
    #[sea_orm(primary_key)]
    pub id: i32,
    #[sea_orm(column_type = "Json")]
    pub struct_vec: Vec<JsonColumn>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, FromJsonQueryResult)]
pub struct JsonColumn {
    pub value: String,
}

Enhancements

  • Loader: use ValueTuple as hash key #1868

Upgrades

0.12.3

22 Sep 17:15
Compare
Choose a tag to compare

New Features

  • [sea-orm-migration] Check if an index exists #1828
  • Added cursor_by to SelectTwo #1826

Enhancements

  • [sea-orm-cli] Support generation of related entity with composite foreign key #1693

Bug Fixes

  • [sea-orm-macro] Fixed DeriveValueType by qualifying QueryResult #1855
  • Fixed Loader panic on empty inputs

Upgrades

  • Upgraded salvo to 0.50
  • Upgraded chrono to 0.4.30 #1858
  • Updated sea-query to 0.30.1
  • Updated sea-schema to 0.14.1

House keeping

  • Added test cases for find_xxx_related/linked #1811

0.12.2

04 Aug 21:40
Compare
Choose a tag to compare

Enhancements

  • Added support for Postgres arrays in FromQueryResult impl of JsonValue #1598

Bug fixes

  • Fixed find_with_related consolidation logic #1800