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!

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top