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
I'm offering a flexible way for my end user to do query, and therefore seeking a programmatical way to be able to add the NOT operator to all the different db.Cond I've been assembled.
Thanks for any hints.
The text was updated successfully, but these errors were encountered:
The problem is how to do this programmatically, I can give an example a snippet of code I used,
case "lessThanInsensitive":
cond = db.Cond{db.Raw(fmt.Sprintf("lower(%s)", field)): db.Lt(db.Raw("lower(?)", input.Field(i).Interface()))}
break
case "not":
// if there's something like below?
// wrappedCond is another db.Cond{}
cond = db.Not(wrappedCond)
I'm offering a flexible way for my end user to do query, and therefore seeking a programmatical way to be able to add the NOT operator to all the different db.Cond I've been assembled.
Thanks for any hints.
The text was updated successfully, but these errors were encountered: