mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
Encryption documentation
This commit is contained in:
1 parent
b7e236a693
commit
9ef1c70eb2
2 files changed
+4
No files matched your search
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user