Skip to content

Commit 93292d8

Browse files
committed
Make DatabasePreUpdateEvent.Kind Sendable, matching DatabaseEvent.Kind, and also duplicate comments from DatabaseEvent.Kind while here
1 parent 14d2b93 commit 93292d8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

GRDB/Core/TransactionObserver.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,16 +1231,16 @@ private struct CopiedDatabaseEventImpl: DatabaseEventImpl {
12311231

12321232
public struct DatabasePreUpdateEvent {
12331233

1234-
/// An event kind
1235-
public enum Kind: CInt {
1236-
/// SQLITE_INSERT
1237-
case insert = 18
1234+
/// An event kind.
1235+
public enum Kind: CInt, Sendable {
1236+
/// An insertion event
1237+
case insert = 18 // SQLITE_INSERT
12381238

1239-
/// SQLITE_DELETE
1240-
case delete = 9
1239+
/// A deletion event
1240+
case delete = 9 // SQLITE_DELETE
12411241

1242-
/// SQLITE_UPDATE
1243-
case update = 23
1242+
/// An update event
1243+
case update = 23 // SQLITE_UPDATE
12441244
}
12451245

12461246
/// The event kind

0 commit comments

Comments
 (0)