Question

I am using "PRAGMA journal_mode= OFF" in my code but it seems that my database is not keeping this setting. When i reconnect to my database it shows "PRAGMA journal_mode=DELETE". Why is this happening? Is there any chance I can make it constant for all the connections in my database?

Thank you in advance!

Was it helpful?

Solution

The documentation says:

This pragma ... sets the journal mode for databases associated with the current database connection.

There is no mechanism to save it in the database file. You have to set it for every connection.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top