mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
Add DatabaseRegionConvertible to Table
This commit is contained in:
1 parent
bb2ce74125
commit
e69092ca6a
1 file changed
+6
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user