Kaydet (Commit) 5f5c15fa authored tarafından Gerhard Häring's avatar Gerhard Häring

Issue #3854: Documented using the sqlite3 module with multiple threads.

üst 4d80889d
......@@ -880,3 +880,18 @@ exception, the transaction is rolled back; otherwise, the transaction is
committed:
.. literalinclude:: ../includes/sqlite3/ctx_manager.py
Common issues
-------------
Multithreading
^^^^^^^^^^^^^^
Older SQLite versions had issues with sharing connections between threads.
That's why the Python module disallows sharing connections and cursors between
threads. If you still try to do so, you will get an exception at runtime.
The only exception is calling the :meth:`~Connection.interrupt` method, which
only makes sense to call from a different thread.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment