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

Add ilike helper method #159

Merged
merged 3 commits into from
Jul 26, 2024
Merged

Conversation

abanoub-fathy
Copy link
Contributor

@abanoub-fathy abanoub-fathy commented Jul 9, 2024

Summary

Add ILIKE helper method for make it easy to filter by ILIKE condition

So instead of writing this

builder.Where( "username ILIKE " + builder.Var("%"+User.Name+"%"))

we will use this

  builder.Where(builder.ILike("username", "%"+User.Name+"%"))

@huandu
Copy link
Owner

huandu commented Jul 26, 2024

Thanks for your contribution. Your PR works great!

@huandu huandu merged commit ebceb91 into huandu:master Jul 26, 2024
1 check passed
@coveralls
Copy link

Coverage Status

coverage: 96.274% (+0.009%) from 96.265%
when pulling 4b8a96c on abanoub-fathy:add-ILIKE-helper-method
into 9fc30d9 on huandu:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants