Get a value from the query result with an ColIdx
(&self, index: I)
| 75 | impl QueryResult { |
| 76 | /// Get a value from the query result with an ColIdx |
| 77 | pub fn try_get_by<T, I>(&self, index: I) -> Result<T, DbErr> |
| 78 | where |
| 79 | T: TryGetable, |
| 80 | I: ColIdx, |
| 81 | { |
| 82 | Ok(T::try_get_by(self, index)?) |
| 83 | } |
| 84 | |
| 85 | /// Get a value from the query result with an ColIdx |
| 86 | pub fn try_get_by_nullable<T, I>(&self, index: I) -> Result<T, TryGetError> |
no test coverage detected