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
Following #212 it would be useful if there was a utility method for enabling counts for ALL tables in a database:
db.enable_counts()
Open question: should this setup triggers for virtual tables such as FTS tables? Could that break things?
The text was updated successfully, but these errors were encountered:
I'm going to skip virtual tables, which I can identify using this property:
sqlite-utils/sqlite_utils/db.py
Lines 720 to 726 in 1cad7fa
Sorry, something went wrong.
I got this error while prototyping this:
too many levels of trigger recursion
It looks like that's because SQLite doesn't like triggers on a table that themselves then update that table - so I'm going to exclude the _counts table from this mechanism.
_counts
9a5c92b
Release 3.2
4cc82fd
Refs #206, #211, #212, #213, #214, #215, #216, #217, #218, #219
No branches or pull requests
Following #212 it would be useful if there was a utility method for enabling counts for ALL tables in a database:
Open question: should this setup triggers for virtual tables such as FTS tables? Could that break things?
The text was updated successfully, but these errors were encountered: