Skip to content

Commit 6ebe1ba

Browse files
committed
Update sqlite3.rst
1 parent e0a3202 commit 6ebe1ba

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Doc/library/sqlite3.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,10 @@ Module functions
302302
:type isolation_level: str | None
303303

304304
:param bool check_same_thread:
305-
If ``True`` (default), only the creating thread may use the connection.
306-
If ``False``, the connection may be shared across multiple threads;
307-
if so, write operations may need to be serialized by the user,
308-
to avoid data corruption.
309-
Please see :attr:`threadsafety` for more information.
305+
If ``True`` (default), an exception will be raised if the database connection
306+
is used by a thread other than the one that created it.
307+
This may be helpful in particular when SQLite is not in serialized mode
308+
(see :attr:`threadsafety`).
310309

311310
:param Connection factory:
312311
A custom subclass of :class:`Connection` to create the connection with,

0 commit comments

Comments
 (0)