diff -r f7c85accbde9 Doc/library/sqlite3.rst --- a/Doc/library/sqlite3.rst Sun May 29 04:13:35 2016 +0000 +++ b/Doc/library/sqlite3.rst Sun May 29 19:12:48 2016 -0700 @@ -190,6 +190,13 @@ any combination of :const:`PARSE_DECLTYPES` and :const:`PARSE_COLNAMES` to turn type detection on. + *check_same_thread* defaults to :const:`True` and connections are not shared + across multiple threads. If set :const:`False`, sqlite connection can be + accessed from multiple threads and not just the thread in which they were + created. When using multiple threads with the same connection, + synchronization such as locking, should be done by the user to avoid any + data corruption. + By default, the :mod:`sqlite3` module uses its :class:`Connection` class for the connect call. You can, however, subclass the :class:`Connection` class and make :func:`connect` use your class instead by providing your class for the *factory*