Skip to content

Compile sqlite with FTS3 enhanced query syntax enabled #562

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

Merged
merged 1 commit into from
Mar 17, 2025

Conversation

sandhose
Copy link
Contributor

Fixes #550

This adds three compilation flags to the embedded sqlite module:

  • -DSQLITE_ENABLE_FTS3 to explicitly enable FTS3 support (which AFAIK is already enabled by default)
  • -DSQLITE_ENABLE_FTS3_PARENTHESIS to enable the enhanced FTS3 query syntax (which isn't enabled by default)
  • -DSQLITE_ENABLE_FTS3_TOKENIZER to enable the two-argument version of the fts3_tokenizer() interface. It still has to be enabled on the connection-level using Connection.setconfig

All those flags are enabled by default in the Debian build of SQLite, and probably in other distributions as well.

Copy link
Member

@zanieb zanieb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

The failures look like #567 — we can ignore those.

@zanieb zanieb merged commit 4ef6f72 into astral-sh:main Mar 17, 2025
382 of 390 checks passed
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.

Compile SQLite with -DENABLE_FTS3_PARENTHESIS
2 participants