-
Notifications
You must be signed in to change notification settings - Fork 196
Open
Description
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:
bllWhere := map[string]interface{}{
"country": "China",
"role": "driver",
"age >": 45,
"gmt_create <": builder.Raw("gmt_modified"),
"_or": []map[string]interface{}{
{
"x1": 11,
"x2 >=": 45,
},
{
"x3": "234",
"x4 <>": "tx2",
},
},
}
aopWhere := map[string]interface{}{
"_and": []map[string]interface{}{
{
"is_del": 0,
},
bllWhere,
},
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels