mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 09:24:31 +02:00
Note about execute_plugins=False, refs #575
This commit is contained in:
parent
619cea8681
commit
1dc6b5aa64
1 changed files with 6 additions and 0 deletions
|
|
@ -111,6 +111,12 @@ Connections use ``PRAGMA recursive_triggers=on`` by default. If you don't want t
|
|||
|
||||
db = Database(memory=True, recursive_triggers=False)
|
||||
|
||||
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:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
db = Database(memory=True, execute_plugins=False)
|
||||
|
||||
.. _python_api_attach:
|
||||
|
||||
Attaching additional databases
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue