SE-0299 for DatabaseRegionConvertible.fullDatabase

This commit is contained in:
Gwendal Roué committed 2021-10-01 11:13:20 +02:00
1 parent 32b2923e89
commit 2d4398798a
1 file changed
+8
+8
View File
@@ -348,6 +348,14 @@ public protocol DatabaseRegionConvertible {
func databaseRegion(_ db: Database) throws -> DatabaseRegion
}
#if compiler(>=5.5)
extension DatabaseRegionConvertible where Self == DatabaseRegion {
/// The region that covers the full database: all columns and all rows
/// from all tables.
public static var fullDatabase: Self { DatabaseRegion.fullDatabase }
}
#endif
extension DatabaseRegion: DatabaseRegionConvertible {
/// :nodoc:
public func databaseRegion(_ db: Database) throws -> DatabaseRegion {