8000 Docs: improve accuracy of sqlite3 `check_same_thread` parameter by marcospgp · Pull Request #101351 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Docs: improve accuracy of sqlite3 check_same_thread parameter #101351

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 6 commits into from
Feb 1, 2023
Merged
Changes from 1 commit
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
8000
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Doc/library/sqlite3.rst
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
  • Loading branch information
marcospgp and CAM-Gerlach committed Jan 30, 2023
commit 1aac9ce836fd69155eaa5b24aa9390b89c5eb8dc
6 changes: 4 additions & 2 deletions Doc/library/sqlite3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,10 @@ Module functions
:param bool check_same_thread:
If ``True`` (default), an exception will be raised if the database connection
is used by a thread other than the one that created it.
This may be helpful in particular when SQLite is not in serialized mode
(see :attr:`threadsafety`).
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