We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7bfac9 commit da2d5ebCopy full SHA for da2d5eb
sea-orm-macros/src/derives/from_query_result.rs
@@ -16,6 +16,14 @@ struct FromQueryResultItem {
16
pub ident: Ident,
17
}
18
19
+/// Initially, we try to obtain the value for each field and check if it is an ordinary DB error
20
+/// (which we return immediatly), or a null error.
21
+///
22
+/// ### Background
23
24
+/// Null errors do not necessarily mean that the deserialization as a whole fails,
25
+/// since structs embedding the current one might have wrapped the current one in an `Option`.
26
+/// In this case, we do not want to swallow other errors, which are very likely to
27
struct TryFromQueryResultCheck<'a>(&'a FromQueryResultItem);
28
29
impl<'a> ToTokens for TryFromQueryResultCheck<'a> {
0 commit comments