Instance Methodgrdb 7.3.0GRDB
isModified(by:)
Returns whether the content in the region is impacted by this event.
func isModified(by event: DatabaseEvent) -> Bool
Returns whether the content in the region is impacted by this event.
func isModified(by event: DatabaseEvent) -> Bool
import GRDB
A toolkit for SQLite databases, with a focus on application development
struct DatabaseRegion
An observable region of the database.
struct DatabaseEvent
A database event.
@frozen struct Bool
A value type whose instances are either true
or false
.
func isModified(byEventsOfKind eventKind: DatabaseEventKind) -> Bool
Returns whether the content in the region would be impacted if the database were modified by an event of this kind.
init()
The empty database region.
static let fullDatabase: DatabaseRegion
The region that covers the full database.
var description: String { get }
var isEmpty: Bool { get }
Returns whether the region is empty.
var isFullDatabase: Bool { get }
Returns whether the region covers the full database.
static func == (lhs: DatabaseRegion, rhs: DatabaseRegion) -> Bool
func databaseRegion(_ db: Database) throws -> DatabaseRegion
mutating func formUnion(_ other: DatabaseRegion)
Inserts the given region into this region
func union(_ other: DatabaseRegion) -> DatabaseRegion
Returns the union of this region and the given one.