You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I implement the DerivePartialModel I find I can't implement SelectTwoMany::all_partial_model because of no primany key to consolidate result. I think it may can be solved.
If support “Nest”, then we can construct following PartialModel
(I suppose the PrimaryKeyTrait has an associate type PartialModel whitch contain all of its primany key)
This is not only advance of Support "Nest" for DerivePartialModel and FromQueryResult. I believe it will useful in many condition.
Proposed Solutions
add derive macro argument flatten for derive macro PartialModelTrait and FromQueryResult , mark specified field became "Nest". this require the type of this field implement PartialModelTrait and FromQueryResult
Current Workarounds
Manual writing PartialModel with each field and cannot using preivous exits PartialModel
The text was updated successfully, but these errors were encountered:
Motivation
When I implement the
DerivePartialModel
I find I can't implementSelectTwoMany::all_partial_model
because of no primany key to consolidate result. I think it may can be solved.If support “Nest”, then we can construct following
PartialModel
(I suppose the
PrimaryKeyTrait
has an associate typePartialModel
whitch contain all of its primany key)That can make consolidate result possible
This is not only advance of Support "Nest" for
DerivePartialModel
andFromQueryResult
. I believe it will useful in many condition.Proposed Solutions
add derive macro argument
flatten
for derive macroPartialModelTrait
andFromQueryResult
, mark specified field became "Nest". this require the type of this field implementPartialModelTrait
andFromQueryResult
Current Workarounds
Manual writing
PartialModel
with each field and cannot using preivous exitsPartialModel
The text was updated successfully, but these errors were encountered: