Replies: 2 comments 3 replies
-
It's hard to answer complex questions like this without having a lot of context. Given that this question does not include this context (like what's exactly Diesel allows you to customize the generated DSL down to everything. You are not restricted to the build in DSL, you can bring your own extensions and even build your own separate DSL that doesn't use anything from diesel. Additionally you can always fall back to |
Beta Was this translation helpful? Give feedback.
-
Thank you for response, I will try to add some context. I tried to implement this with QueryFragment, but I can't understand how can I extract |
Beta Was this translation helpful? Give feedback.
-
Is it possible to reuse dto structure field selection and result set binding, but specify custom
from
clause?I have a relatively complex query, which I want to use as from clause and add custom filter / limit logic on top of this query.
For example, If I create a custom structure
I want to produce sql like this:
select id, status from <complex_subquery>
I tried to implement this with
QueryFragment
but it looks like diesel doesn't expose from clause customization.Beta Was this translation helpful? Give feedback.
All reactions