We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Plugins affecting the CLI by default makes sense to me.
I'm less confident about them always affecting users of the Python API.
I'm going to have them apply by default, but I'm going to add a mechanism to opt-out on an individual database basis. Basically this:
from sqlite_utils import Database db = Database(memory=True, execute_plugins=False) # Anything using db from here on will not execute plugins
cc @asg017
Refs:
prepare_connection()
The text was updated successfully, but these errors were encountered:
Relevant code:
sqlite-utils/sqlite_utils/db.py
Line 346 in 3f80a02
Sorry, something went wrong.
Database(..., execute_plugins=False) mechanism, refs #575
374a816
Documented here: https://sqlite-utils.datasette.io/en/latest/plugins.html
Last minute changelog for register_commands() for 3.34
3e1d467
Refs #567, #574, #575
Note about execute_plugins=False, refs #575
1dc6b5a
No branches or pull requests
Plugins affecting the CLI by default makes sense to me.
I'm less confident about them always affecting users of the Python API.
I'm going to have them apply by default, but I'm going to add a mechanism to opt-out on an individual database basis. Basically this:
cc @asg017
Refs:
prepare_connection()
plugin hook #574The text was updated successfully, but these errors were encountered: