diff options
author | Erlend E. Aasland <erlend.aasland@protonmail.com> | 2022-11-12 22:44:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-12 22:44:41 (GMT) |
commit | c95f554a408f76f96c14c006ebe8a0d3d3b40765 (patch) | |
tree | 28095c0d6ad6b85f09aeae6028038dc62131e6fd /Doc/whatsnew | |
parent | 99972dc7450f1266e39202012827f4f3c995b0ca (diff) | |
download | cpython-c95f554a408f76f96c14c006ebe8a0d3d3b40765.zip cpython-c95f554a408f76f96c14c006ebe8a0d3d3b40765.tar.gz cpython-c95f554a408f76f96c14c006ebe8a0d3d3b40765.tar.bz2 |
gh-83638: Add sqlite3.Connection.autocommit for PEP 249 compliant behaviour (#93823)
Introduce the autocommit attribute to Connection and the autocommit
parameter to connect() for PEP 249-compliant transaction handling.
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.12.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index ead2a9e..e5782ad 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -263,6 +263,13 @@ sqlite3 * Add a :ref:`command-line interface <sqlite3-cli>`. (Contributed by Erlend E. Aasland in :gh:`77617`.) +* Add the :attr:`~sqlite3.Connection.autocommit` attribute + to :class:`~sqlite3.Connection` + and the *autocommit* parameter to :func:`~sqlite3.connect` + to control :pep:`249`-compliant + :ref:`transaction handling <sqlite3-transaction-control-autocommit>`. + (Contributed by Erlend E. Aasland in :gh:`83638`.) + threading --------- |