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

feat: recreate fts triggers after table transform #499

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chapmanjacobd
Copy link
Contributor

@chapmanjacobd chapmanjacobd commented Oct 11, 2022

#498


📚 Documentation preview 📚: https://sqlite-utils--499.org.readthedocs.build/en/499/

alternatively, self.disable_fts()

@codecov
Copy link

codecov bot commented Oct 11, 2022

Codecov Report

Base: 96.37% // Head: 96.25% // Decreases project coverage by -0.11% ⚠️

Coverage data is based on head (a25e838) compared to base (d792dad).
Patch coverage: 40.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #499      +/-   ##
==========================================
- Coverage   96.37%   96.25%   -0.12%     
==========================================
  Files           4        4              
  Lines        2401     2406       +5     
==========================================
+ Hits         2314     2316       +2     
- Misses         87       90       +3     
Impacted Files Coverage Δ
sqlite_utils/db.py 97.09% <40.00%> (-0.23%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@chapmanjacobd
Copy link
Contributor Author

chapmanjacobd commented Oct 26, 2022

The problem with how it is currently is that the transformed fts table will return incorrect results (unless the table was only 1 row or something), even if create_triggers was enabled previously. Maybe the simplest solution is to disable fts on a transformed table rather than try to recreate it? Thoughts?

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.

1 participant