开发者

sqlite journal file location

开发者 https://www.devze.com 2023-01-20 20:29 出处:网络
Curently sqlite is writing 开发者_如何学JAVAjournal file in the same directory where is placeddatabase file. It makes a problem with the directory permission (it has to be writable).

Curently sqlite is writing 开发者_如何学JAVAjournal file in the same directory where is placed database file. It makes a problem with the directory permission (it has to be writable). Is there any method to force sqlite to write journal files in other directory?


No, but you can use PRAGMA journal_mode = PERSIST.


Setting the journal_mode to OFF or MEMORY should do the trick.

http://sqlite.org/pragma.html#pragma_journal_mode

0

精彩评论

暂无评论...
验证码 换一张
取 消