Skip to content

Commit 345043f

Browse files
Amend How-to heading, and remove a recommendation
1 parent 155013f commit 345043f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Doc/library/sqlite3.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,8 +2433,8 @@ the context manager does nothing.
24332433

24342434
.. _sqlite3-howto-pragma-in-transaction:
24352435

2436-
How to use ``PRAGMA`` statements in transactions
2437-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2436+
How to use ``PRAGMA`` statements with implicit transaction control
2437+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24382438

24392439
Some ``PRAGMA`` statements have no effect within transactions.
24402440
For example, a ``PRAGMA foreign_keys=ON`` query will silently fail
@@ -2678,8 +2678,7 @@ Transaction control via the ``autocommit`` attribute
26782678

26792679
The recommended way of controlling transaction behaviour is through
26802680
the :attr:`Connection.autocommit` attribute,
2681-
which should preferably be set using the *autocommit* parameter
2682-
of :func:`connect`.
2681+
normally set using the *autocommit* parameter of :func:`connect`.
26832682

26842683
Set *autocommit* to ``False`` for :pep:`249`-compliant transaction control.
26852684
This means:

0 commit comments

Comments
 (0)