balderdashy / balderdashy/sails

Support ilike for Postgres

Open
#4,628 17 comments 1 reaction 0 assignees View on GitHub
orm proposal
Dominant language
JavaScript
Stars
22.8k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

**Waterline version**:0.13.4
**Node version**:8.9
**NPM version**:5.0
**Operating system**:All



waterline/utils/query/private/normalize-constraint.js should support ILIKE. This would be a super simple change the the existing 'like' condition.

A simple update to:

`else if (modifierKind === 'like' || modifierKind === 'ilike') {`

Contributor guide

Open the contributing guide

Research direction

Start in waterline/utils/query/private/normalize-constraint.js and read the existing handling for the `like` modifier. Verify how the Postgres adapter exercises this constraint, then confirm that an `ilike` condition is accepted and behaves as expected without changing the existing `like` behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, postgresql
Domain
databases
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.