DatabaseRegionConvertible
public protocol DatabaseRegionConvertible
DatabaseRegionConvertible
is the protocol for values that can be turned
into a DatabaseRegion
.
Such values specify the region obserbed by DatabaseRegionObservation
.
-
Returns a database region.
Declaration
Swift
func databaseRegion(_ db: Database) throws -> DatabaseRegion
Parameters
db
A database connection.
-
fullDatabase
Extension methodThe region that covers the full database: all columns and all rows from all tables.
Declaration
Swift
public static var fullDatabase: Self { get }