Open
Conversation
pleshevskiy
reviewed
Sep 19, 2020
src/lib.rs
Outdated
| T: ToString, | ||
| { | ||
| let mut cond = field.to_string(); | ||
| if cond.is_empty() || mask.to_string().is_empty() || mask.to_string().is_empty() { return self; } |
|
I think we shouldn't merge this.
|
Author
|
3e7d8f0 to
0414eba
Compare
Owner
|
For example you have a filter on a form. And according of its value you show records from database and pinned records: With empty filter you will see all records, and its a normal. |
Owner
|
I have plans to make an universal WHERE query constructor, but I haven't yet decided how to make it convenient and visual |
Owner
|
go-sqlbuilder for golang looks awful: sb := sqlbuilder.NewSelectBuilder()
sb.Select("id", "name", sb.As("COUNT(*)", "c"))
sb.From("user")
sb.Where(sb.In("status", 1, 2, 5)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ignore like mask is "" or feild is ""