8000 [3.11] Docs: improve accuracy of sqlite3 `check_same_thread` parameter (GH-101351) by miss-islington · Pull Request #101512 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.11] Docs: improve accuracy of sqlite3 check_same_thread parameter (GH-101351) #101512

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions Doc/library/sqlite3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,13 @@ Module functions
:type isolation_level: str | None

:param bool check_same_thread:
If ``True`` (default), only the creating thread may use the connection.
If ``False``, the connection may be shared across multiple threads;
if so, write operations should be serialized by the user to avoid data
corruption.
If ``True`` (default), :exc:`ProgrammingError` will be raised
if the database connection is used by a thread
other than the one that created it.
If ``False``, the connection may be accessed in multiple threads;
write operations may need to be serialized by the user
to avoid data corruption.
See :attr:`threadsafety` for more information.

:param Connection factory:
A custom subclass of :class:`Connection` to create the connection with,
Expand Down
0