diff --git a/CHANGELOG.md b/CHANGELOG.md index da53c09a..596ef756 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -75,6 +75,17 @@ fn try_get(res: &QueryResult, pre: &str, col: &str) -> Result // now; ColIdx can be `&str` or `usize` fn try_get_by(res: &QueryResult, index: I) -> Result; ``` +So if you implmented it yourself: +```patch +impl TryGetable for XXX { +- fn try_get(res: &QueryResult, pre: &str, col: &str) -> Result { ++ fn try_get_by(res: &QueryResult, idx: I) -> Result { +- let value: YYY = res.try_get(pre, col).map_err(TryGetError::DbErr)?; ++ let value: YYY = res.try_get_by(idx).map_err(TryGetError::DbErr)?; + .. + } +} +``` * The `ActiveModelBehaviour` trait becomes async trait https://github.com/SeaQL/sea-orm/pull/1328 ```rust // For anyone who implement the `ActiveModelBehaviour` with default implementation (no*op).