Skip to content
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

Missing 'like' and 'not like' operator in QueryBuilder #265

Closed
circulon opened this issue Dec 17, 2020 · 3 comments · Fixed by #266
Closed

Missing 'like' and 'not like' operator in QueryBuilder #265

circulon opened this issue Dec 17, 2020 · 3 comments · Fixed by #266
Labels
feature request A feature that does not yet exist but will be a good addition to the library Query Builder Related to the query builder

Comments

@circulon
Copy link
Contributor

circulon commented Dec 17, 2020

I wanted to use the 'like' operator in where (with wildcard specifiers % and _) in postgres.

eg
builder = SomeModel.get_builder()
builder.where('name', 'like', '%jones%')
results = builder.get()

Unfortunately these operators are not listed in the QueryBuilder._extract_operator_value as a valid operator

Unless there is another way to do a 'like/Not like'?

Thanks

@josephmancuso
Copy link
Member

hmm how did this get missed? lol. Thanks for reporting it

@josephmancuso josephmancuso added feature request A feature that does not yet exist but will be a good addition to the library Query Builder Related to the query builder labels Dec 17, 2020
@circulon
Copy link
Contributor Author

Np thanks for this updating this regularly

@josephmancuso
Copy link
Member

This is completed and released in 0.9.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A feature that does not yet exist but will be a good addition to the library Query Builder Related to the query builder
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants