sea-query breaking changes

cargo

17 curated breaking changes across major versions of sea-query. Use this as a migration checklist before bumping dependencies.

17
changes
Breaking changes by transition
  • 0.30.7 \u2192 0.31.0-rc.6breaking

    Rework SQLite type mapping https://github.com/SeaQL/sea-query/pull/735 ```rust assert_eq!( Table::create() .table(Alias::new("strange")) .col(ColumnDef::new(Alias::new("id")).integer().not_null().auto_increment().primary_key()) .col(ColumnDef::new(Alias::new("int1")).integer()) .col(ColumnDef::new(Alias::new("int2")).tiny_integer()) .col(ColumnDef::new(Alias::new("int3")).small_integer()) .col(ColumnDef::new(Alias::new("int4")).big_integer()) .col(ColumnDef::new(Alias::new("string1")).string())

  • 0.30.7 \u2192 0.31.0-rc.6breaking

    MySQL money type maps to decimal

  • 0.30.7 \u2192 0.31.0-rc.6breaking

    MySQL blob types moved to `sea_query::extension::mysql::MySqlType`; `ColumnDef::blob()` now takes no parameters ```rust assert_eq!( Table::create() .table(BinaryType::Table) .col(ColumnDef::new(BinaryType::BinaryLen).binary_len(32)) .col(ColumnDef::new(BinaryType::Binary).binary()) .col(ColumnDef::new(BinaryType::Blob).blob()) .col(ColumnDef::new(BinaryType::TinyBlob).custom(MySqlType::TinyBlob)) .col(ColumnDef::new(BinaryType::MediumBlob).custom(MySqlType::MediumBlob)) .col(ColumnDef::new(Binar

  • 0.30.7 \u2192 0.31.0-rc.6breaking

    `ColumnDef::binary()` set column type as binary with default length of 1

  • 0.30.7 \u2192 0.31.0-rc.6breaking

    Removed `BlobSize` enum

  • 0.31.0-rc.9 \u2192 0.31.0breaking

    Rework SQLite type mapping https://github.com/SeaQL/sea-query/pull/735 ```rust assert_eq!( Table::create() .table(Alias::new("strange")) .col(ColumnDef::new(Alias::new("id")).integer().not_null().auto_increment().primary_key()) .col(ColumnDef::new(Alias::new("int1")).integer()) .col(ColumnDef::new(Alias::new("int2")).tiny_integer()) .col(ColumnDef::new(Alias::new("int3")).small_integer()) .col(ColumnDef::new(Alias::new("int4")).big_integer()) .col(ColumnDef::new(Alias::new("string1")).string())

  • 0.31.0-rc.9 \u2192 0.31.0breaking

    MySQL money type maps to decimal

  • 0.31.0-rc.9 \u2192 0.31.0breaking

    MySQL blob types moved to `sea_query::extension::mysql::MySqlType`; `ColumnDef::blob()` now takes no parameters ```rust assert_eq!( Table::create() .table(BinaryType::Table) .col(ColumnDef::new(BinaryType::BinaryLen).binary_len(32)) .col(ColumnDef::new(BinaryType::Binary).binary()) .col(ColumnDef::new(BinaryType::Blob).blob()) .col(ColumnDef::new(BinaryType::TinyBlob).custom(MySqlType::TinyBlob)) .col(ColumnDef::new(BinaryType::MediumBlob).custom(MySqlType::MediumBlob)) .col(ColumnDef::new(Binar

  • 0.31.0-rc.9 \u2192 0.31.0breaking

    `ColumnDef::binary()` set column type as binary with default length of 1

  • 0.31.0-rc.9 \u2192 0.31.0breaking

    Removed `BlobSize` enum

  • 0.30.4 \u2192 0.30.5breaking

    Caution: do not use the `--all-features` param in Cargo. If you want to enable all features, use the `all-features` feature flag instead. **Full Changelog**: https://github.com/SeaQL/sea-query/compare/0.30.4...0.30.5

  • sea-query-derive/0.4.1 \u2192 0.30.3breaking

    Removed `ToTokens` for `PgInterval` https://github.com/SeaQL/sea-query/pull/710

  • unknown \u2192 0.29.1breaking

    Removed variants `Four, Five, Six` from `enum ValueTuple` as part of https://github.com/SeaQL/sea-query/pull/564

  • unknown \u2192 0.29.1breaking

    Removed `Expr::tbl`, `Expr::greater_than`, `Expr::greater_or_equal`, `Expr::less_than`, `Expr::less_or_equal`, `Expr::into_simple_expr` https://github.com/SeaQL/sea-query/pull/551

  • unknown \u2192 0.29.1breaking

    Removed `SimpleExpr::equals` and `SimpleExpr::not_equals` https://github.com/SeaQL/sea-query/pull/551

  • unknown \u2192 0.29.1breaking

    Removed `InsertStatement::exprs`, `InsertStatement::exprs_panic` https://github.com/SeaQL/sea-query/pull/551

  • unknown \u2192 0.29.1breaking

    Removed `OnConflict::update_value`, `OnConflict::update_values`, `OnConflict::update_expr`, `OnConflict::update_exprs` https://github.com/SeaQL/sea-query/pull/551

API access

Get this data programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/breaking/cargo/sea-query
sea-query breaking changes — Cargo migration guide | DepScope