SQLite VFS implementation guide lines with FOpen*

前端 未结 2 915
无人共我
无人共我 2021-02-05 14:46

I am about to implement a custom VFS (virtual file system) for a Netburner embedded device (non windows) using FOpen, FRead, FWrite, FSeek, and FClose. I was surprised that i co

2条回答
  •  闹比i
    闹比i (楼主)
    2021-02-05 15:20

    One option is to use a memory based VFS then simply dump the memory to file when you are done. See: http://article.gmane.org/gmane.comp.db.sqlite.general/46450 for a memory based VFS that already supports serialization/deserialization.

    The disadvantage is that you must manually write the file out for it to persist. If your application suddenly dies any intermediate changes to the DB will not be persisted.

提交回复
热议问题