]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-83638: Add sqlite3.Connection.autocommit for PEP 249 compliant behaviour (#93823)
authorErlend E. Aasland <erlend.aasland@protonmail.com>
Sat, 12 Nov 2022 22:44:41 +0000 (23:44 +0100)
committerGitHub <noreply@github.com>
Sat, 12 Nov 2022 22:44:41 +0000 (23:44 +0100)
commitc95f554a408f76f96c14c006ebe8a0d3d3b40765
tree28095c0d6ad6b85f09aeae6028038dc62131e6fd
parent99972dc7450f1266e39202012827f4f3c995b0ca
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>
14 files changed:
Doc/library/sqlite3.rst
Doc/whatsnew/3.12.rst
Include/internal/pycore_global_objects_fini_generated.h
Include/internal/pycore_global_strings.h
Include/internal/pycore_runtime_init_generated.h
Include/internal/pycore_unicodeobject_generated.h
Lib/test/test_sqlite3/test_transactions.py
Misc/NEWS.d/next/Library/2022-06-14-22-46-05.gh-issue-83638.73xfGK.rst [new file with mode: 0644]
Modules/_sqlite/clinic/connection.c.h
Modules/_sqlite/connection.c
Modules/_sqlite/connection.h
Modules/_sqlite/cursor.c
Modules/_sqlite/module.c
Modules/_sqlite/module.h