DatabaseEventKind
public enum DatabaseEventKind
A kind of database event. See Database.add(transactionObserver:) and DatabaseWriter.add(transactionObserver:).
-
The insertion of a row in a database table
Declaration
Swift
case insert(tableName: String)
-
The deletion of a row in a database table
Declaration
Swift
case delete(tableName: String)
-
The update of a set of columns in a database table
Declaration
Swift
case update(tableName: String, columnNames: Set<String>)
-
Returns whether event has any impact on tables and columns described by selectionInfo.
Declaration
Swift
public func impacts(_ selectionInfo: SelectStatement.SelectionInfo) -> Bool
-
The impacted database table
Declaration
Swift
public var tableName: String