dqlite
dqlite copied to clipboard
refactor: separate `{Wal,Main,DiskMain}File`s behaviour
This PR further separates the behaviour of the many different files SQLite uses. In detail, it splits the behaviour in 3 different structs:
vfsWalFilewhich is only related toWALoperation. This file is always in memory for dqlitevfsMainFilethe real database file. This file is always in memory for dqlite. This file also indirectly manages the shared memory (-shmfile).vfsDiskMainFileagain, the real database file, but indiskmode. This file is on disk.