summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend.aasland@protonmail.com>2022-11-12 22:44:41 (GMT)
committerGitHub <noreply@github.com>2022-11-12 22:44:41 (GMT)
commitc95f554a408f76f96c14c006ebe8a0d3d3b40765 (patch)
tree28095c0d6ad6b85f09aeae6028038dc62131e6fd /Misc/NEWS.d
parent99972dc7450f1266e39202012827f4f3c995b0ca (diff)
downloadcpython-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 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Library/2022-06-14-22-46-05.gh-issue-83638.73xfGK.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-06-14-22-46-05.gh-issue-83638.73xfGK.rst b/Misc/NEWS.d/next/Library/2022-06-14-22-46-05.gh-issue-83638.73xfGK.rst
new file mode 100644
index 0000000..3edbf95
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-06-14-22-46-05.gh-issue-83638.73xfGK.rst
@@ -0,0 +1,6 @@
+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>`.
+Patch by Erlend E. Aasland.