mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
Fix compiler error
This commit is contained in:
1 parent
4995b5bb8c
commit
fb8c68f5e0
1 file changed
+5
-2
@@ -36,14 +36,17 @@ class TruncateOptimizationTests: GRDBTestCase {
|
||||
return true
|
||||
}
|
||||
|
||||
#if SQLITE_ENABLE_PREUPDATE_HOOK
|
||||
func databaseWillChange(with event: DatabasePreUpdateEvent) { }
|
||||
#endif
|
||||
|
||||
func databaseDidChange(with event: DatabaseEvent) {
|
||||
if case .delete = event.kind {
|
||||
deletionEvents[event.tableName, default: 0] += 1
|
||||
}
|
||||
}
|
||||
|
||||
func databaseWillCommit() throws {
|
||||
}
|
||||
func databaseWillCommit() throws { }
|
||||
|
||||
func databaseDidCommit(_ db: Database) {
|
||||
if !deletionEvents.isEmpty {
|
||||
|
||||
Reference in new issue
Block a user