Using SQLite, I set the journal mode..
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?
thanks.
B4X:
SQL1.ExecNonQuery("PRAGMA journal_mode = WAL")
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?
B4X:
SQL1.ExecNonQuery("PRAGMA wal_checkpoint")