Using SQLite, I set the journal mode..
SQL1.ExecNonQuery("PRAGMA journal_mode = WAL")
I want to update the database from the journal when the program closes.
Right now, if you make changes then close the program, the wal file does not close or update the database.
Follow that by opening and closing the program without any changes, the database is updated and the wal file is deleted
Reading SQLite documentation, I see that you can force a checkpoint.
How do a set a checkpoint in my code, is this correct?
SQL1.ExecNonQuery("PRAGMA wal_checkpoint")
thanks.