mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 09:24:31 +02:00
parent
e878f2a8fe
commit
de10590344
3 changed files with 27 additions and 1 deletions
|
|
@ -37,6 +37,12 @@ If you want to create an in-memory database, you can do so like this:
|
|||
|
||||
db = Database(memory=True)
|
||||
|
||||
Connections use ``PRAGMA recursive_triggers=on`` by default. If you don't want to use `recursive triggers <https://www.sqlite.org/pragma.html#pragma_recursive_triggers>`__ you can turn them off using:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
db = Database(memory=True, recursive_triggers=False)
|
||||
|
||||
Tables are accessed using the indexing operator, like so:
|
||||
|
||||
.. code-block:: python
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue