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 support for sqlite MATCH operator #504

Closed

Conversation

evgeniy-terekhin
Copy link
Contributor

this PR adds support for sqlite MATCH operator used primarily for full text search purposes
It does so by allowing Expr::Matches to be used not only for postgres but also for sqlite

@ikrivosheev
Copy link
Member

@evgeniy-terekhin thank you for PR! I think Postgres Matches and Sqlite MATCH are not equal...

@evgeniy-terekhin
Copy link
Contributor Author

evgeniy-terekhin commented Nov 5, 2022

@evgeniy-terekhin thank you for PR! I think Postgres Matches and Sqlite MATCH are not equal...

can you please elaborate on this? and maybe suggest a different approach?

edit: I am not going to argue that they are semantically identical. though they serve a similar ppurpose: they are used for ful text search matching. Also they are both binary operators whose purpose is matching of some sort.

@ikrivosheev
Copy link
Member

@evgeniy-terekhin I think is better to move sqlite specific operators into new enum. Something like I did here: #506.

@billy1624 @tyt2y3 what do you think?

@evgeniy-terekhin
Copy link
Contributor Author

closing in favor of this PR

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

Successfully merging this pull request may close these issues.

2 participants