SQLite Forum

Dispatch Sqlite Instance with event loop
Login
Thanks to explain.  


I am not sure how to put connection into worker thread local storage, and I need to close it when app quit.


So I create multi connection from event loop thread, when I need run a query from worker thread, I take one from pool and push back into pool after work done.  and close them all when app quit.


My question is the Sqlite connection instance will be execute from diff worker thread, is this safe with thread_mode=2?