All Versions
31
Latest Version
Avg Release Cycle
19 days
Latest Release
-
Changelog History
Page 1
Changelog History
Page 1
-
v0.10.4 Changes
๐ Bug Fixes
- ๐ Fix DeriveActiveEnum expand enum variant starts with number https://github.com/SeaQL/sea-orm/pull/1219
โจ Enhancements
- Filter rows with
IS IN
enum values expression https://github.com/SeaQL/sea-orm/pull/1183
-
v0.10.3 Changes
November 14, 2022๐ Bug Fixes
- [sea-orm-cli] Set search path when initializing Postgres connection for CLI generate entity https://github.com/SeaQL/sea-orm/pull/1212
- [sea-orm-cli] Generate
_
prefix to enum variant starts with number https://github.com/SeaQL/sea-orm/pull/1211 - ๐ Fix composite key cursor pagination https://github.com/SeaQL/sea-orm/pull/1216
- The logic for single-column primary key was correct, but for composite keys the logic was incorrect
โจ Enhancements
- Added
Insert::exec_without_returning
https://github.com/SeaQL/sea-orm/pull/1208
House Keeping
- โ Remove dependency when not needed https://github.com/SeaQL/sea-orm/pull/1207
-
v0.10.2 Changes
November 06, 2022โจ Enhancements
- [sea-orm-rocket] added
sqlx_logging
toConfig
https://github.com/SeaQL/sea-orm/pull/1192 - Collecting metrics for
query_one/all
https://github.com/SeaQL/sea-orm/pull/1165 - ๐ use GAT to elide
StreamTrait
lifetime https://github.com/SeaQL/sea-orm/pull/1161
๐ Bug Fixes
- โก๏ธ corrected the error name
UpdateGetPrimaryKey
https://github.com/SeaQL/sea-orm/pull/1180
โฌ๏ธ Upgrades
- โก๏ธ Update MSRV to 1.65
- [sea-orm-rocket] added
-
v0.10.1 Changes
October 27, 2022โจ Enhancements
- [sea-orm-cli] Escape module name defined with Rust keywords https://github.com/SeaQL/sea-orm/pull/1052
- [sea-orm-cli] Check to make sure migration name doesn't contain hyphen
-
in it https://github.com/SeaQL/sea-orm/pull/879, https://github.com/SeaQL/sea-orm/pull/1155 - ๐ Support
time
crate for SQLite https://github.com/SeaQL/sea-orm/pull/995
๐ Bug Fixes
- [sea-orm-cli] Generate
Related
for m-to-n relation https://github.com/SeaQL/sea-orm/pull/1075 - [sea-orm-cli] Generate model entity with Postgres Enum field https://github.com/SeaQL/sea-orm/pull/1153
- [sea-orm-cli] Migrate up command apply all pending migrations https://github.com/SeaQL/sea-orm/pull/1010
- [sea-orm-cli] Conflicting short flag
-u
when executingmigrate generate
command https://github.com/SeaQL/sea-orm/pull/1157 - Prefix the usage of types with
sea_orm::
insideDeriveActiveEnum
derive macros https://github.com/SeaQL/sea-orm/pull/1146, https://github.com/SeaQL/sea-orm/pull/1154 - [sea-orm-cli] Generate model with
Vec<f32>
orVec<f64>
should not deriveEq
on the model struct https://github.com/SeaQL/sea-orm/pull/1158
House Keeping
- [sea-orm-cli] [sea-orm-migration] Add
cli
feature to optionally include dependencies that are required by the CLI https://github.com/SeaQL/sea-orm/pull/978
โฌ๏ธ Upgrades
- โฌ๏ธ Upgrade
sea-schema
to 0.10.2 https://github.com/SeaQL/sea-orm/pull/1153
-
v0.10.0 Changes
October 23, 2022๐ New Features
- ๐ Better error types (carrying SQLx Error) https://github.com/SeaQL/sea-orm/pull/1002
- ๐ Support array datatype in PostgreSQL https://github.com/SeaQL/sea-orm/pull/1132
- [sea-orm-cli] Generate entity files as a library or module https://github.com/SeaQL/sea-orm/pull/953
- [sea-orm-cli] Generate a new migration template with name prefix of unix timestamp https://github.com/SeaQL/sea-orm/pull/947
- [sea-orm-cli] Generate migration in modules https://github.com/SeaQL/sea-orm/pull/933
- [sea-orm-cli] Generate
DeriveRelation
on emptyRelation
enum https://github.com/SeaQL/sea-orm/pull/1019 - [sea-orm-cli] Generate entity derive
Eq
if possible https://github.com/SeaQL/sea-orm/pull/988 - [sea-orm-cli] Run migration on any PostgreSQL schema https://github.com/SeaQL/sea-orm/pull/1056
โจ Enhancements
- ๐ Support
distinct
&distinct_on
expression https://github.com/SeaQL/sea-orm/pull/902 fn column()
also handle enum type https://github.com/SeaQL/sea-orm/pull/973- โ Added
acquire_timeout
onConnectOptions
https://github.com/SeaQL/sea-orm/pull/897 - [sea-orm-cli]
migrate fresh
command will drop all PostgreSQL types https://github.com/SeaQL/sea-orm/pull/864, https://github.com/SeaQL/sea-orm/pull/991 - ๐ Better compile error for entity without primary key https://github.com/SeaQL/sea-orm/pull/1020
- โ Added blanket implementations of
IntoActiveValue
forOption
values https://github.com/SeaQL/sea-orm/pull/833 - Added
into_model
&into_json
toCursor
https://github.com/SeaQL/sea-orm/pull/1112 - Added
set_schema_search_path
method toConnectOptions
for setting schema search path of PostgreSQL connection https://github.com/SeaQL/sea-orm/pull/1056 - Serialize
time
types asserde_json::Value
https://github.com/SeaQL/sea-orm/pull/1042 - Implements
fmt::Display
forActiveEnum
https://github.com/SeaQL/sea-orm/pull/986 - Implements
TryFrom<ActiveModel>
forModel
https://github.com/SeaQL/sea-orm/pull/990
๐ Bug Fixes
- Trim spaces when paginating raw SQL https://github.com/SeaQL/sea-orm/pull/1094
๐ฅ Breaking changes
- Replaced
usize
withu64
inPaginatorTrait
https://github.com/SeaQL/sea-orm/pull/789 - Type signature of
DbErr
changed as a result of https://github.com/SeaQL/sea-orm/pull/1002 ColumnType::Enum
structure changed:enum ColumnType { // then Enum(String, Vec<String>) // now Enum { /// Name of enum name: DynIden, /// Variants of enum variants: Vec<DynIden>, } ... }
// example
[derive(Iden)]
enum TeaEnum { #[iden = "tea"] Enum, #[iden = "EverydayTea"] EverydayTea, #[iden = "BreakfastTea"] BreakfastTea, }
// then ColumnDef::new(active_enum_child::Column::Tea) .enumeration("tea", vec!["EverydayTea", "BreakfastTea"])
// now ColumnDef::new(active_enum_child::Column::Tea) .enumeration(TeaEnum::Enum, [TeaEnum::EverydayTea, TeaEnum::BreakfastTea])
* A new method `array_type` was added to `ValueType`: ```rust impl sea_orm::sea_query::ValueType for MyType { fn array_type() -> sea_orm::sea_query::ArrayType { sea_orm::sea_query::ArrayType::TypeName } ... }
ActiveEnum::name()
changed return type toDynIden
: ```rust #[derive(Debug, Iden)] #[iden = "category"] pub struct CategoryEnum;
impl ActiveEnum for Category { // then fn name() -> String { "category".to_owned() }
// now fn name() -> DynIden { SeaRc::new(CategoryEnum) } ...
}
### House Keeping * ๐ Documentation grammar fixes https://github.com/SeaQL/sea-orm/pull/1050 * Replace `dotenv` with `dotenvy` in examples https://github.com/SeaQL/sea-orm/pull/1085 * โ Exclude test_cfg module from SeaORM https://github.com/SeaQL/sea-orm/pull/1077 ### Integration * ๐ Support `rocket_okapi` https://github.com/SeaQL/sea-orm/pull/1071 ### โฌ๏ธ Upgrades * โฌ๏ธ Upgrade `sea-query` to 0.26 https://github.com/SeaQL/sea-orm/pull/985
-
v0.9.3 Changes
September 30, 2022โจ Enhancements
fn column()
also handle enum type https://github.com/SeaQL/sea-orm/pull/973- Generate migration in modules https://github.com/SeaQL/sea-orm/pull/933
- Generate
DeriveRelation
on emptyRelation
enum https://github.com/SeaQL/sea-orm/pull/1019 - ๐ Documentation grammar fixes https://github.com/SeaQL/sea-orm/pull/1050
๐ Bug fixes
- Implement
IntoActiveValue
fortime
types https://github.com/SeaQL/sea-orm/pull/1041 - ๐ Fixed module import for
FromJsonQueryResult
derive macro https://github.com/SeaQL/sea-orm/pull/1081
-
v0.9.2 Changes
August 20, 2022โจ Enhancements
- [sea-orm-cli] Migrator CLI handles init and generate commands https://github.com/SeaQL/sea-orm/pull/931
- [sea-orm-cli] added
with-copy-enums
flag to conditional deriveCopy
onActiveEnum
https://github.com/SeaQL/sea-orm/pull/936
House keeping
- 0๏ธโฃ Exclude
chrono
default features https://github.com/SeaQL/sea-orm/pull/950 - Set minimal rustc version to
1.60
https://github.com/SeaQL/sea-orm/pull/938 - โก๏ธ Update
sea-query
to0.26.3
Notes
๐ In this minor release, we removed
time
v0.1 from the dependency graph -
v0.9.1 Changes
July 22, 2022โจ Enhancements
- ๐ [sea-orm-cli] Codegen support for
VarBinary
column type https://github.com/SeaQL/sea-orm/pull/746 - [sea-orm-cli] Generate entity for SYSTEM VERSIONED tables on MariaDB https://github.com/SeaQL/sea-orm/pull/876
๐ Bug Fixes
- ๐
RelationDef
&RelationBuilder
should beSend
&Sync
https://github.com/SeaQL/sea-orm/pull/898
House keeping
- โ Remove unnecessary
async_trait
https://github.com/SeaQL/sea-orm/pull/737
- ๐ [sea-orm-cli] Codegen support for
-
v0.9.0 Changes
July 17, 2022๐ New Features
- Cursor pagination https://github.com/SeaQL/sea-orm/pull/822
- Custom join on conditions https://github.com/SeaQL/sea-orm/pull/793
DeriveMigrationName
andsea_orm_migration::util::get_file_stem
https://github.com/SeaQL/sea-orm/pull/736FromJsonQueryResult
for deserializingJson
from query result https://github.com/SeaQL/sea-orm/pull/794
โจ Enhancements
- ๐ฒ Added
sqlx_logging_level
toConnectOptions
https://github.com/SeaQL/sea-orm/pull/800 - Added
num_items_and_pages
toPaginator
https://github.com/SeaQL/sea-orm/pull/768 - โ Added
TryFromU64
fortime
https://github.com/SeaQL/sea-orm/pull/849 - โ Added
Insert::on_conflict
https://github.com/SeaQL/sea-orm/pull/791 - Added
QuerySelect::join_as
andQuerySelect::join_as_rev
https://github.com/SeaQL/sea-orm/pull/852 - Include column name in
TryGetError::Null
https://github.com/SeaQL/sea-orm/pull/853 - ๐ฒ [sea-orm-cli] Improve logging https://github.com/SeaQL/sea-orm/pull/735
- [sea-orm-cli] Generate enum with numeric like variants https://github.com/SeaQL/sea-orm/pull/588
- [sea-orm-cli] Allow old pending migration to be applied https://github.com/SeaQL/sea-orm/pull/755
- [sea-orm-cli] Skip generating entity for ignored tables https://github.com/SeaQL/sea-orm/pull/837
- [sea-orm-cli] Generate code for
time
crate https://github.com/SeaQL/sea-orm/pull/724 - [sea-orm-cli] Add various blob column types https://github.com/SeaQL/sea-orm/pull/850
- [sea-orm-cli] Generate entity files with Postgres's schema name https://github.com/SeaQL/sea-orm/pull/422
โฌ๏ธ Upgrades
- โฌ๏ธ Upgrade
clap
to 3.2 https://github.com/SeaQL/sea-orm/pull/706 - โฌ๏ธ Upgrade
time
to 0.3 https://github.com/SeaQL/sea-orm/pull/834 - โฌ๏ธ Upgrade
sqlx
to 0.6 https://github.com/SeaQL/sea-orm/pull/834 - โฌ๏ธ Upgrade
uuid
to 1.0 https://github.com/SeaQL/sea-orm/pull/834 - โฌ๏ธ Upgrade
sea-query
to 0.26 https://github.com/SeaQL/sea-orm/pull/834 - โฌ๏ธ Upgrade
sea-schema
to 0.9 https://github.com/SeaQL/sea-orm/pull/834
House keeping
- ๐จ Refactor stream metrics https://github.com/SeaQL/sea-orm/pull/778
๐ Bug Fixes
- [sea-orm-cli] skip checking connection string for credentials https://github.com/SeaQL/sea-orm/pull/851
๐ฅ Breaking changes
SelectTwoMany::one()
has been dropped https://github.com/SeaQL/sea-orm/pull/813, you can get(Entity, Vec<RelatedEntity>)
by first querying a single model from Entity, then use [ModelTrait::find_related
] on the model.- #### Feature flag revamp
We now adopt the weak dependency syntax in Cargo. That means the flags
["sqlx-json", "sqlx-chrono", "sqlx-decimal", "sqlx-uuid", "sqlx-time"]
are not needed and now removed. Instead,with-time
will enablesqlx?/time
only ifsqlx
is already enabled. As a consequence, now the featureswith-json
,with-chrono
,with-rust_decimal
,with-uuid
,with-time
will not be enabled as a side-effects of enablingsqlx
.
-
v0.8.0 Changes
May 10, 2022๐ New Features
- [sea-orm-cli]
sea migrate generate
to generate a new, empty migration file https://github.com/SeaQL/sea-orm/pull/656
โจ Enhancements
- โ Add
max_connections
option to CLI https://github.com/SeaQL/sea-orm/pull/670 - ๐ฏ Derive
Eq
,Clone
forDbErr
https://github.com/SeaQL/sea-orm/pull/677 - โ Add
is_changed
toActiveModelTrait
https://github.com/SeaQL/sea-orm/pull/683
๐ Bug Fixes
- ๐ Fix
DerivePrimaryKey
with custom primary key column name https://github.com/SeaQL/sea-orm/pull/694 - ๐ Fix
DeriveEntityModel
macros override column name https://github.com/SeaQL/sea-orm/pull/695 - ๐ Fix Insert with no value supplied using
DEFAULT
https://github.com/SeaQL/sea-orm/pull/589
๐ฅ Breaking changes
- Migration utilities are moved from sea-schema to sea-orm repo, under a new sub-crate
sea-orm-migration
.sea_schema::migration::prelude
should be replaced bysea_orm_migration::prelude
in all migration files
โฌ๏ธ Upgrades
- โฌ๏ธ Upgrade
sea-query
to 0.24.x,sea-schema
to 0.8.x - โฌ๏ธ Upgrade example to Actix Web 4, Actix Web 3 remains https://github.com/SeaQL/sea-orm/pull/638
- โ Added Tonic gRPC example https://github.com/SeaQL/sea-orm/pull/659
- โฌ๏ธ Upgrade GraphQL example to use axum 0.5.x
- โฌ๏ธ Upgrade axum example to 0.5.x
๐ Fixed Issues
- 0๏ธโฃ Failed to insert row with only default values https://github.com/SeaQL/sea-orm/issues/420
- โฌ๏ธ Reduce database connections to 1 during codegen https://github.com/SeaQL/sea-orm/issues/511
- Column names with single letters separated by underscores are concatenated https://github.com/SeaQL/sea-orm/issues/630
- โก๏ธ Update Actix Web examples https://github.com/SeaQL/sea-orm/issues/639
- Lower function missing https://github.com/SeaQL/sea-orm/issues/672
- ๐ is_changed on active_model https://github.com/SeaQL/sea-orm/issues/674
- Failing find_with_related with column_name attribute https://github.com/SeaQL/sea-orm/issues/693
Full Changelog: https://github.com/SeaQL/sea-orm/compare/0.7.1...0.8.0
- [sea-orm-cli]