Is it possible to read from a sqlite database while it is being written to?
How would one go about accomplishing this?
Thanks!
Is it possible to read from a sqlite database while it is being written to?
How would one go about accomplishing this?
Thanks!
Read this section of the SQLite FAQ's and also this one.
Basically, since the database isn't controlled by a "proper" DBMS (i.e. a server) there a limitations as to what can be done with it. For instance, you have to wait until one transaction is completed before starting another. Fortunately, the SQLite library does some checking to see if the database is being modified by another library-handled connection before it starts doing stuff to the database.