-
Notifications
You must be signed in to change notification settings - Fork 195
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
[proposal] Support _add #153
Comments
Sorry I don't understand what |
When writing business logic, it’s always done with bllWhere. When invoking, AOP should automatically inject conditions similar to {"is_del": 1} based on the context. Just like: bllWhere During execution, an algorithm needs to select an appropriate aopWhere, which is then combined with a specific bll to ultimately perform the query. |
Why not just |
In IoT scenarios, when the MES system queries data, there are sometimes interactions with external systems to confirm AOP query requests. There can be situations like the following: aopWhere = { bllWhere = { Using YourAOP(bllWhere) means that developers need to parse SQL requests and perform boolean operations. By adding _add, the sql engine can parse (aopCond AND (bllCond)). |
There're many cases that user want to use aop to filter data, like soft delete. By adding support for '_add', it enables users to implement AOP queries more easily.
just like:
The text was updated successfully, but these errors were encountered: