Add DatabaseRegionConvertible to Table

This commit is contained in:
Gwendal Roué committed 2021-12-02 09:45:38 +01:00
1 parent bb2ce74125
commit e69092ca6a
1 file changed
+6
+6
View File
@@ -33,6 +33,12 @@ extension Table where RowDecoder == Row {
}
}
extension Table: DatabaseRegionConvertible {
public func databaseRegion(_ db: Database) throws -> DatabaseRegion {
DatabaseRegion(table: tableName)
}
}
// MARK: Request Derivation
extension Table {