]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45613: Set `sqlite3.threadsafety` dynamically (GH-29227)
authorErlend Egeberg Aasland <erlend.aasland@innova.no>
Wed, 3 Nov 2021 21:01:37 +0000 (22:01 +0100)
committerGitHub <noreply@github.com>
Wed, 3 Nov 2021 21:01:37 +0000 (21:01 +0000)
commitc2739867113a2b650db300c03ef06cf18dcee3f4
tree859f757fe8859147d1efa51a86207771968c5a27
parent762173c6709f5cf3b59cbbe47d4e6fafbfe7ec2a
bpo-45613: Set `sqlite3.threadsafety` dynamically (GH-29227)

Use the compile-time selected default SQLite threaded mode to set the
DB-API 2.0 attribute 'threadsafety'

Mappings:
  - SQLITE_THREADSAFE=0 => threadsafety=0
  - SQLITE_THREADSAFE=1 => threadsafety=3
  - SQLITE_THREADSAFE=2 => threadsafety=1
Doc/library/sqlite3.rst
Doc/whatsnew/3.11.rst
Lib/sqlite3/dbapi2.py
Lib/test/test_sqlite3/test_dbapi.py
Misc/NEWS.d/next/Library/2021-10-26-14-29-54.bpo-45613.55Ie3c.rst [new file with mode: 0644]
Modules/_sqlite/module.c