Replies: 1 comment
-
|
I did find this weird workaround to use #[sea_orm(from_expr = "Expr::col(interval::Column::Amount).sum()")]
pub total_amount: Option<f32>,And drop the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After #2534 I managed to get nested structs working, but now I'm failing at the next step: trying to include an extra field in the query (
total_amount):If I try it like this, the DerivePartialModel macro will error:
But if I add
#[sea_orm(skip)]the field will not be filled in the Model nor will it be part of the select query sent to DB.Beta Was this translation helpful? Give feedback.
All reactions