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:
The OperatorName type has been extended to include "ilike". This allows us to use the ilike operator in our application logic.
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.
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.
This PR introduces support for the
ilike
operator in our application. Theilike
operator is a case-insensitive version of thelike
operator, commonly used in PostgreSQL.Changes:
The
OperatorName
type has been extended to include"ilike"
. This allows us to use theilike
operator in our application logic.The
KnexOperators
constant has been updated to map the"ilike"
string to"ilike"
. This ensures that theilike
operator is correctly translated when building queries with Knex.A new
ilike
function has been added to theFunctionalOperators
object. This function implements the logic for theilike
operator. It checks if theexpected
string starts with, ends with, or contains theactual
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.