Repository navigation
Closed
Labels
dialect: postgresFor issues and PRs. Things that involve PostgreSQL (and do not involve all dialects).type: featureDEPRECATED: replace with the "feature" issue type
Description
Issue Creation Checklist
[X] I have read the contribution guidelines
Feature Description
Support for Soundex, fuzzy string match and difference function in PSQL
Is your feature request related to a problem? Please describe.
I'd like to search in my table and get closest match for example if I searched "studt" instead of "student" I get the nearest match
Describe the solution you'd like
If we have soundex and difference function in Sequelize.Op it'll be great
Why should this be in Sequelize
Because soundex is very useful in searching patterns and working with string.
Describe alternatives/workarounds you've considered
The work around is using raw SQL but in this situation you can't use ORM features alongside your soundex query.
Additional context
PSQL documentation on Soundex.
https://www.postgresql.org/docs/9.1/fuzzystrmatch.html
Feature Request Checklist
Is this feature dialect-specific?
- No. This feature is relevant to Sequelize as a whole.
- Yes. This feature only applies to the following dialect(s): XXX, YYY, ZZZ
Would you be willing to implement this feature by submitting a Pull Request?
- Yes, I have the time and I know how to start.
- Yes, I have the time but I don't know how to start, I would need guidance.
- No, I don't have the time, although I believe I could do it if I had the time...
- No, I don't have the time and I wouldn't even know how to start.
Metadata
Metadata
Assignees
Labels
dialect: postgresFor issues and PRs. Things that involve PostgreSQL (and do not involve all dialects).type: featureDEPRECATED: replace with the "feature" issue type
Activity
github-actions commentedon Oct 27, 2021
This issue has been automatically marked as stale because it has been open for 7 days without activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment or remove the "stale" label. 🙂
github-actions commentedon Nov 8, 2021
This issue has been automatically marked as stale because it has been open for 7 days without activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment or remove the "stale" label. 🙂
ephys commentedon Apr 16, 2022
Unfortunately,
Opis for operators, not functions. You can already use functions usingfn(), orliteral().I agree that using
literalmeans you have to opt out of some of the features of the ORM, but we're fixing thatWith the above RFC, you will soon be able to do this:
ephys commentedon May 27, 2023
The above proposal is now available in v7