AnyFetchRequest
public struct AnyFetchRequest<T> : FetchRequest
A type-erased FetchRequest.
An AnyFetchRequest forwards its operations to an underlying request, hiding its specifics.
-
Declaration
Swift
public typealias RowDecoder = T
-
Creates a request that wraps and forwards operations to
request
.Declaration
Swift
public init<Request>(_ request: Request) where Request : FetchRequest
-
Creates a request whose
prepare()
method wraps and forwards operations the argument closure.Declaration
Swift
@available(*, deprecated, message: "Define your own FetchRequest type instead.") public init(_ prepare: @escaping (Database, _ singleResult: Bool) throws -> (SelectStatement, RowAdapter?))