SQLite Forum

Lua db:close deletes WAL file
Login
> I'll examine [the docs] more thoughtfully.

The relevant section is [this one](https://www.sqlite.org/howtocorrupt.html#multiple_copies_of_sqlite_linked_into_the_same_application). It directly addresses your wish for the problem to be documented. It doesn’t speak of Lua specifically, but it also doesn’t speak of the other infinity of combinations the same problem can occur under.