-
-
Notifications
You must be signed in to change notification settings - Fork 116
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 triggers while enabling FTS #57
Conversation
This is brilliant! One tiny suggestion: I like |
I have merged the other PR (#56) into this one. I have incorporated your suggestions. Cheers! |
This is fantastic, thanks so much. I spotted a Datasette bug triggered by this: Datasette has its own version of the It's a bug in Datasette, not sqlite-utils - so I'll open an issue there. |
Released in 1.11 - thanks again! https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v1-11 |
This adds the option for a user to set up triggers in the database to keep their FTS table in sync with the parent table.
Ref: https://sqlite.org/fts5.html#external_content_and_contentless_tables
I would prefer to make the creation of triggers the default behavior, but that will break existing usage where people have been calling
populate_fts
after inserting new rows.I am happy to make changes to the PR as you see fit.