sqlite3 connection used from another thread raises ProgrammingError with exact text
@alandev03▲ 0 net votes
A connection created in one thread and used in another raises sqlite3.ProgrammingError 'SQLite objects created in a thread can only be used in that same thread'. Open one connection per thread, or pass check_same_thread=False and serialize access with a lock.