gh-83638: Add sqlite3.Connection.autocommit for PEP 249 compliant behaviour by erlend-aasland · Pull Request #93823 · python/cpython · GitHub

github.com

Tin mới

erlend-aasland:sqlite-autocommit

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Add an autocommit property to sqlite3.Connection with a PEP 249 compliant manual commit mode and migrate #83638

Add sqlite3.Connection.autocommit for PEP 249 compliant behaviour

awaiting core review

awaiting core review

Add sqlite3.Connection.autocommit for PEP 249 compliant behaviour erlend-aasland/cpython#35

Document DEPRECATED_TRANSACTION_CONTROL

Fix setattr behaviour

Suggest new behaviour starting with Python 3.14

View reviewed changes

Simplify implicit rollback test

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

Address Alex' review

Reorder if condition to add emphasis to deprecated behaviour

Add context manager tests

Improve 5e4626ecf47a679ba5fa8846472af16fb325cac5

View reviewed changes

Update Doc/library/sqlite3.rst

View reviewed changes

Update Doc/library/sqlite3.rst

View reviewed changes

Lib/test/test_sqlite3/test_transactions.py

support sqlite .autocommit parameter (Python 3.12) sqlalchemy/sqlalchemy#8795

Address review: remove unneeded assert in test_autocommit_setget_invalid

View reviewed changes

Address review: add test for rollback() if autocommit is True

Address review: fixup context manager docs

Improve sqlite3 documentation of the new autocommit attribute #99435

Improve sqlite3 documentation of the new autocommit attribute #99670

Document sqlite3.connect() as implicitly opening transactions in the new PEP-249 manual commit mode #99824

Clarify sqlite3 documentation of PEP 249 compliance for commit modes #99828