SQLite Forum

Atomically initialize database
Login
> Initialize files under a different file name (but in the same directory), and rename them to foo.bar when successfully initialized.

Another possibility: you could have an already-initialised file as part of your "application package" which you just copy to the target file (`foo.bar`) when required. Probably little different than programmatically creating the file under a different name and then renaming, but just throwing the idea out in case it helps.