SQLite Forum

Can I detect if the disk supports WAL mode?
Login
I have a process that defaults to reading/writing a SQLite DB in WAL mode (for the concurrent readers and improved write performance).


An issue that I have ([prev forum posting](https://sqlite.org/forum/forumpost/d2432b5dc2)) is that the process can run in a Docker container or a VM.

I think VM/docker volumes do not work with WAL mode for the same reasons as WAL mode not working on network disks (guess: two OS's do not know about each others locks).


**Am I able to detect if the disk directory provided will work flawlessly with WAL mode?**

At the moment WAL mode seems to corrupt the database if given a VM/docker volume.

I want to proactively detect if this is the case and exit my process with an error.