dqlite icon indicating copy to clipboard operation
dqlite copied to clipboard

refactor: separate `{Wal,Main,DiskMain}File`s behaviour

Open marco6 opened this issue 6 months ago • 0 comments

This PR further separates the behaviour of the many different files SQLite uses. In detail, it splits the behaviour in 3 different structs:

  • vfsWalFile which is only related to WAL operation. This file is always in memory for dqlite
  • vfsMainFile the real database file. This file is always in memory for dqlite. This file also indirectly manages the shared memory (-shm file).
  • vfsDiskMainFile again, the real database file, but in disk mode. This file is on disk.

marco6 avatar Jun 16 '25 15:06 marco6