sqlite3, memory db and multithreading

królewna królewna at ee.pl
Fri Mar 19 12:04:16 CET 2010

W dniu 19.03.2010 08:20, Expo pisze:
> You can put the SQLite database into a Singleton class and use a
> semaphore to serialize the access to methods which writes to the
> database.

I've tried this out but doesnt work. Still gives an error like:

ProgrammingError: SQLite objects created in a thread can only be used in 
that same thread.The object was created in thread id -1216280896 and 
this is thread id -1217107088

best regards

More information about the Python-list mailing list