开发者

atomic read from sqlite database while it is being written to

Is it possibl开发者_JAVA百科e 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜