CHANGELOG

This commit is contained in:
Billy Chan 2023-04-24 12:05:04 +08:00
parent b2d78d43da
commit 0bc6fdbc2b
No known key found for this signature in database
GPG Key ID: A2D690CAC7DF3CC7

View File

@ -279,7 +279,27 @@ CREATE TABLE users_saved_bills
### Enhancements ### Enhancements
* Re-export `sea_orm::ConnectionTrait` in `sea_orm_migration::prelude` https://github.com/SeaQL/sea-orm/pull/1577 * 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<T: TryGetable> {
foo: i32,
bar: T,
}
```
```rs
trait MyTrait {
type Item: TryGetable;
}
#[derive(FromQueryResult)]
struct TraitAssociateTypeTest<T>
where
T: MyTrait,
{
foo: T::Item,
}
```
### Bug Fixes ### Bug Fixes