We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
var where = map[string]interface{}{} if data.StartTime > 0 { where["start_time > "] = data.IsDisplay } if data.EndTime > 0 { where["end_time < "] = data.EndTime } if len(where) > 0 { rowBuilder = rowBuilder.Where(where) countBuilder = countBuilder.Where(where) }
The text was updated successfully, but these errors were encountered:
Why not use the given squirrel.Where and squirrel.Lt?
squirrel.Where
squirrel.Lt
Sorry, something went wrong.
.Where
V1.5.3 seem not squirrel.Where and squirrel.Lt function ,please show me full code
lt = squirrel.Lt{"title LIKE ?": fmt.Sprint("%", data.Title, "%")}
title
rowBuilder = rowBuilder.Where(lt) countBuilder = countBuilder.Where(lt)
this don not work
No branches or pull requests
The text was updated successfully, but these errors were encountered: