0

I'm using SQLCipher to encrypt my database as there's sensitive information. Everything seems to work, I'm just irritated because I've got two .sqlite-files right now:

~/Library/Application Support/MyData.sqlite
~/Library/Application Support/MyApp/MyData.sqlite
~/Library/Application Support/MyApp/MyData.sqlite-shm
~/Library/Application Support/MyApp/MyData.sqlite-wal

The first one is encrypted, the second isn't - but it doesn't contain any information. So it seems to work as there's no way to get to the information, but I just wanted to ensure that this is correct.

4

1 回答 1

-1

您需要关闭 sqlite 的 Write Ahead Logging 功能。要在 Core Data 中执行此操作,您需要在商店中设置 pragma 选项。您可以从这个相关的 stackoverflow 问题中看到如何设置标志

于 2014-03-24T14:26:24.267 回答