diff --git a/GRDB/Core/Database+Schema.swift b/GRDB/Core/Database+Schema.swift index 45694761f..8a66e2585 100644 --- a/GRDB/Core/Database+Schema.swift +++ b/GRDB/Core/Database+Schema.swift @@ -85,6 +85,9 @@ extension Database { /// same database file, your application may need to call this method in /// order to avoid undesired consequences. public func clearSchemaCache() { + // TODO: can't we automatically clear the cache for writer connection, + // just as we do for DatabasePool reader connections? + SchedulingWatchdog.preconditionValidQueue(self) schemaCache.clear()