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

feat/add.ilike.operator #374

Merged
merged 1 commit into from
Dec 26, 2023

Conversation

Martinarbez
Copy link
Contributor

This PR introduces support for the ilike operator in our application. The ilike operator is a case-insensitive version of the like operator, commonly used in PostgreSQL.

Changes:

  1. The OperatorName type has been extended to include "ilike". This allows us to use the ilike operator in our application logic.

  2. The KnexOperators constant has been updated to map the "ilike" string to "ilike". This ensures that the ilike operator is correctly translated when building queries with Knex.

  3. A new ilike function has been added to the FunctionalOperators object. This function implements the logic for the ilike operator. It checks if the expected string starts with, ends with, or contains the actual string, taking into account the % wildcard character.

By adding support for the ilike operator, we can perform case-insensitive pattern matching in our queries, improving the flexibility and robustness of our application.

@joelalejandro joelalejandro merged commit b62522b into kurierjs:main Dec 26, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants