SQLite.Net-PCL icon indicating copy to clipboard operation
SQLite.Net-PCL copied to clipboard

Thread safe?

Open BrunoVT1992 opened this issue 9 years ago • 2 comments

Is this database thread safe? If so, how can I check this? If not, how can I access the database safely from multiple threads?

BrunoVT1992 avatar May 27 '15 05:05 BrunoVT1992

sqlite is by default thread safe if it is compiled with the right flags. thread safety is and must be implemented in the loweste layer nearest the core of the sqlite, and as far it is compiled correctly it is thread safe.

vesavlad avatar May 31 '15 13:05 vesavlad

BUT see also #272

"SQLite is thread safe, but cannot be simultaneously accessed by multiple threads." ?

  • https://forums.xamarin.com/discussion/549/sqlite-net-and-multiple-threads

trevoriancox avatar Feb 11 '16 01:02 trevoriancox