Instance Methodgrdb 7.3.0GRDB
databaseRegion(_:)
DatabaseRegion.swift:433func databaseRegion(_ db: Database) throws -> DatabaseRegion
func databaseRegion(_ db: Database) throws -> DatabaseRegion
import GRDB
A toolkit for SQLite databases, with a focus on application development
struct DatabaseRegion
An observable region of the database.
final class Database
An SQLite connection.
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
mutating func formUnion(_ other: DatabaseRegion)
Inserts the given region into this region
func isModified(by event: DatabaseEvent) -> Bool
Returns whether the content in the region is impacted by this event.
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.
func union(_ other: DatabaseRegion) -> DatabaseRegion
Returns the union of this region and the given one.