How to use SQLite in a multi-threaded application?

前端 未结 7 988
情书的邮戳
情书的邮戳 2020-11-28 02:43

I\'m developing an application with SQLite as the database, and am having a little trouble understanding how to go about using it in multiple threads (none of the other Stac

7条回答
  •  离开以前
    2020-11-28 03:04

    I realize this is an old thread and the responses are good but I've been looking into this recently and came across an interesting analysis of some different implementations. Mainly it goes over the strengths and weaknesses of connection sharing, message passing, thread-local connections and connection pooling. Take a look at it here: http://dev.yorhel.nl/doc/sqlaccess

提交回复
热议问题