From 9ef1c70eb2410c2bcb9079dfdf73c55eba1457f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 5 Apr 2016 06:55:29 +0200 Subject: [PATCH] Encryption documentation --- GRDB/Core/DatabasePool.swift | 2 ++ GRDB/Core/DatabaseQueue.swift | 2 ++ 2 files changed, 4 insertions(+) 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)