File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -299,10 +299,13 @@ Module functions
299
299
:type isolation_level: str | None
300
300
301
301
:param bool check_same_thread:
302
- If ``True `` (default), only the creating thread may use the connection.
303
- If ``False ``, the connection may be shared across multiple threads;
304
- if so, write operations should be serialized by the user to avoid data
305
- corruption.
302
+ If ``True `` (default), :exc: `ProgrammingError ` will be raised
303
+ if the database connection is used by a thread
304
+ other than the one that created it.
305
+ If ``False ``, the connection may be accessed in multiple threads;
306
+ write operations may need to be serialized by the user
307
+ to avoid data corruption.
308
+ See :attr: `threadsafety ` for more information.
306
309
307
310
:param Connection factory:
308
311
A custom subclass of :class: `Connection ` to create the connection with,
You can’t perform that action at this time.
0 commit comments