Add fixit for Cursor.flatMap

This commit is contained in:
Gwendal Roué committed 2019-02-17 12:50:29 +01:00
1 parent cc80daec99
commit efd69a628a
1 file changed
+5
+5
View File
@@ -1 +1,6 @@
// Fixits for changes introduced by GRDB 4.0.0
extension Cursor {
@available(*, unavailable, renamed: "compactMap")
public func flatMap<ElementOfResult>(_ transform: @escaping (Element) throws -> ElementOfResult?) -> MapCursor<FilterCursor<MapCursor<Self, ElementOfResult?>>, ElementOfResult> { preconditionFailure() }
}