Вопрос

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