]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-99824: Document that sqlite3.connect implicitly open a transaction if autocommit...
authorGéry Ogam <gery.ogam@gmail.com>
Wed, 30 Nov 2022 11:33:50 +0000 (12:33 +0100)
committerGitHub <noreply@github.com>
Wed, 30 Nov 2022 11:33:50 +0000 (12:33 +0100)
Authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Doc/library/sqlite3.rst

index 7e2235b285b814d95c6386f67856bed548b1808c..a9ee1e207d0c0586d4cb4c52e1c8a6f2226c4571 100644 (file)
@@ -2468,9 +2468,9 @@ which implies :pep:`249`-compliant transaction control.
 This means:
 
 * :mod:`!sqlite3` ensures that a transaction is always open,
-  so :meth:`Connection.commit` and :meth:`Connection.rollback`
-  will implicitly open a new transaction immediately after closing
-  the pending one.
+  so :func:`connect`, :meth:`Connection.commit`, and :meth:`Connection.rollback`
+  will implicitly open a new transaction
+  (immediately after closing the pending one, for the latter two).
   :mod:`!sqlite3` uses ``BEGIN DEFERRED`` statements when opening transactions.
 * Transactions should be committed explicitly using :meth:`!commit`.
 * Transactions should be rolled back explicitly using :meth:`!rollback`.