Skip to content

Commit 1dc6b5a

Browse files
committed
Note about execute_plugins=False, refs #575
1 parent 619cea8 commit 1dc6b5a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/python-api.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ Connections use ``PRAGMA recursive_triggers=on`` by default. If you don't want t
111111
112112
db = Database(memory=True, recursive_triggers=False)
113113
114+
By default, any :ref:`sqlite-utils plugins <plugins>` that implement the :ref:`plugins_hooks_prepare_connection` hook will be executed against the connection when you create the ``Database`` object. You can opt out of executing plugins using ``execute_plugins=False`` like this:
115+
116+
.. code-block:: python
117+
118+
db = Database(memory=True, execute_plugins=False)
119+
114120
.. _python_api_attach:
115121

116122
Attaching additional databases

0 commit comments

Comments
 (0)