We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 345043f commit 000e4c5Copy full SHA for 000e4c5
Doc/library/sqlite3.rst
@@ -2696,6 +2696,11 @@ This means:
2696
.. note::
2697
2698
Some ``PRAGMA`` statements have no effect when a transaction is open.
2699
+ If ``PRAGMA`` statements are a part of the database connection setup
2700
+ and you want :pep:`249`-compliant transaction control,
2701
+ set *autocommit* to ``True`` in :func:`connect`,
2702
+ execute the needed ``PRAGMA`` statements,
2703
+ then set :attr:`Connection.autocommit` to ``False``.
2704
See :ref:`sqlite3-howto-pragma-in-transaction` for details.
2705
2706
Set *autocommit* to ``True`` to enable SQLite's `autocommit mode`_.
0 commit comments