From 82dc51c554dcfe6f1e4d4e9df1ea7101517a5bc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 9 Apr 2019 19:55:45 +0200 Subject: [PATCH] Document prepareDatabase call site Because it willl be easy to forget the context of #508 when we read this code in the future --- GRDB/Core/Database.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GRDB/Core/Database.swift b/GRDB/Core/Database.swift index e7ce3a7de..b0773d94a 100644 --- a/GRDB/Core/Database.swift +++ b/GRDB/Core/Database.swift @@ -226,6 +226,9 @@ extension Database { } #endif + // Last step before we can start accessing the database. + // This is the opportunity to run SQLCipher configuration + // pragmas such as cipher_page_size, for example. try configuration.prepareDatabase?(self) try validateFormat() configuration.SQLiteConnectionDidOpen?()