diff --git a/CHANGELOG.md b/CHANGELOG.md index 062b7e684..e48b7b4aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,27 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Enhancements * Re-export `sea_orm::ConnectionTrait` in `sea_orm_migration::prelude` https://github.com/SeaQL/sea-orm/pull/1577 -* Support generic structs in `FromQueryResult` derive macro https://github.com/SeaQL/sea-orm/pull/1464 +* Support generic structs in `FromQueryResult` derive macro https://github.com/SeaQL/sea-orm/pull/1464, https://github.com/SeaQL/sea-orm/pull/1603 +```rs +#[derive(FromQueryResult)] +struct GenericTest { + foo: i32, + bar: T, +} +``` +```rs +trait MyTrait { + type Item: TryGetable; +} + +#[derive(FromQueryResult)] +struct TraitAssociateTypeTest +where + T: MyTrait, +{ + foo: T::Item, +} +``` ## 0.11.2 - 2023-03-25