-
Notifications
You must be signed in to change notification settings - Fork 697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compound operations #469
Comments
No, Exposed doesn't have such operations and I don't face a need of them in my practice, could you share use-cases where such compounds could be useful? Also, you can replace a code above with simple: fun List<Op<Boolean>>.compoundOr() = reduce { op, nextOp -> op or nextOp } |
My use case is that I have quite a lot of "data tables" which depend on flat data structures (that is my entities do not contain joins). In order to reduce the need of manually having to type out all specific filtering queries, I've created an utility class which takes Previously I was using Spring Data, it had something similar where you can pass an array of |
Also the reduce operation which you've shown doesn't quite cut it, it will create such result:
while I'm looking for:
|
Fixed in master: added |
I have a list of operations (they get generated dynamically based on user input and table columns) which need to be joined into a single operation using
OR
operator:In order to do so, I've created a helper utility:
then I can use it in the following way:
which results in:
However I think I'm missing something. Is there a way to achieve this with current functions and classes present in the library? If not, could this be added as a new feature?
The text was updated successfully, but these errors were encountered: