Releases: SeaQL/sea-orm
Releases Β· SeaQL/sea-orm
0.12.11
New Features
- Added
desc
toCursor
paginator #2037
Enhancements
- Improve query performance of
Paginator
'sCOUNT
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
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
andis_not_in
#2002
Upgrades
- Updated
sea-query
to0.30.5
https://github.com/SeaQL/sea-query/releases/tag/0.30.5
0.12.9
0.12.8
0.12.7
Enhancements
- Added method
expr_as_
that acceptsself
Upgrades
- Updated
sea-query
to0.30.3
https://github.com/SeaQL/sea-query/releases/tag/0.30.3
0.12.6
0.12.5
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
- @onefifth contributed #1952 #1953
- @clowzed made their first contribution in #1935
- @TmLev made their first contribution in #1934
Full Changelog: 0.12.4...0.12.5
0.12.4
New Features
- Add support for root JSON arrays #1898
Now the following works (requires thejson-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
- Updated
sea-query
to0.30.2
https://github.com/SeaQL/sea-query/releases/tag/0.30.2
0.12.3
New Features
Enhancements
- [sea-orm-cli] Support generation of related entity with composite foreign key #1693
Bug Fixes
- [sea-orm-macro] Fixed
DeriveValueType
by qualifyingQueryResult
#1855 - Fixed
Loader
panic on empty inputs
Upgrades
- Upgraded
salvo
to0.50
- Upgraded
chrono
to0.4.30
#1858 - Updated
sea-query
to0.30.1
- Updated
sea-schema
to0.14.1
House keeping
- Added test cases for
find_xxx_related/linked
#1811