-
-
Notifications
You must be signed in to change notification settings - Fork 675
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 match operator in ColumnExpression for FTS5. #1038
Conversation
Thank you @GetToSet, FTS5 column filters were lacking 👍 |
SQLite just throws a syntax error
I removed the support for I also updated the documentation. |
|
No, because FTS3 accepts NULL. A little harmless SQLite inconsistency ;-) |
🤔 I've never dived such detailed into SQLite grammar, BTW, thanks for instant response for this PR. |
I just ran the tests, and saw that nil matching was throwing an error. Since you are contributing many FTS5 enhancements to GRDB, please let me share a tip. When you open the GRDB workspace, you can run tests with FTS5 enabled by modifying
You can then select the GRDBOSX schema, and run FTS5 tests. Do not commit this change! The raw project must remain FTS5-free so can users can embed it in their apps that target older operating systems. |
Shipped in v5.10.0 |
Pull Request Checklist
development
branch.I'm using GRDB.swift with FTS5 support in my own project and found that in FTS5 query interface, there is no
match
operator for column expressions, which is found in FTS3.This PR add this operator expression and related tests, making it aligned with FTS3 query interface API.