mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
Refactor Request
Rename TypedRequest's associated type from `Fetched` to `RowConverter`, because if TypedRequest needs a type that can decode rows, the type of the decoded rows does not need to be identical to the decoder type. Introduce AdaptedRequest and AdaptedTypedRequest as results of Request.adapted(_:) and TypedRequest.adapted(_:), instead of the generic AnyRequest and AnyTypedRequest.
This commit is contained in:
1 parent
6caed6aacc
commit
8ea215931e
6 files changed
+150
-78
No files matched your search
@@ -2,7 +2,7 @@
|
||||
///
|
||||
/// See https://github.com/groue/GRDB.swift#the-query-interface
|
||||
public struct QueryInterfaceRequest<T> : TypedRequest {
|
||||
public typealias Fetched = T
|
||||
public typealias RowDecoder = T
|
||||
|
||||
let query: QueryInterfaceSelectQueryDefinition
|
||||
|
||||
|
||||
Reference in new issue
Block a user