Encryption documentation

This commit is contained in:
Gwendal Roué committed 2016-04-05 06:55:29 +02:00
1 parent b7e236a693
commit 9ef1c70eb2
2 files changed
+4

No files matched your search

+2
View File
@@ -213,6 +213,8 @@ public enum CheckpointMode: Int32 {
#if SQLITE_HAS_CODEC
extension DatabasePool {
/// Changes the passphrase of an encrypted database
public func changePassphrase(passphrase: String) throws {
try readerPool.clear {
try self.writer.performSync { db in
+2
View File
@@ -204,6 +204,8 @@ public final class DatabaseQueue {
#if SQLITE_HAS_CODEC
extension DatabaseQueue {
/// Changes the passphrase of an encrypted database
public func changePassphrase(passphrase: String) throws {
try serializedDatabase.performSync { db in
try db.changePassphrase(passphrase)