This commit is contained in:
Gwendal Roué committed 2022-11-08 19:28:09 +01:00
1 parent 0873474a17
commit ca079cab17
1 file changed
+3
+3
View File
@@ -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()