diff --git a/GRDB/Core/DatabasePool.swift b/GRDB/Core/DatabasePool.swift index 654a3692f..122bed455 100644 --- a/GRDB/Core/DatabasePool.swift +++ b/GRDB/Core/DatabasePool.swift @@ -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 diff --git a/GRDB/Core/DatabaseQueue.swift b/GRDB/Core/DatabaseQueue.swift index 57ebdb4d2..98eed9788 100644 --- a/GRDB/Core/DatabaseQueue.swift +++ b/GRDB/Core/DatabaseQueue.swift @@ -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)