Database(..., execute_plugins=False) mechanism, refs #575

This commit is contained in:
Simon Willison 2023-07-22 16:06:11 -07:00
commit 374a816c72
3 changed files with 24 additions and 15 deletions

View file

@ -20,6 +20,12 @@ You can see a JSON list of plugins that have been installed by running this:
sqlite-utils plugins
Plugin hooks such as :ref:`plugins_hooks_prepare_connection` affect each instance of the ``Database`` class. You can opt-out of these plugins by creating that class instance like so:
.. code-block:: python
db = Database(memory=True, execute_plugins=False)
.. _plugins_building:
Building a plugin