AnyTypedRequest
public struct AnyTypedRequest<T> : TypedRequest
A type-erased TypedRequest.
An instance of AnyTypedRequest forwards its operations to an underlying typed request, hiding its specifics.
-
The fetched type
Declaration
Swift
public typealias Fetched = T
-
Creates a new request that wraps and forwards operations to
request
.Declaration
-
Creates a new request whose
prepare()
method wraps and forwards operations the argument closure.Declaration
Swift
public init(_ prepare: @escaping (Database) throws -> (SelectStatement, RowAdapter?))
-
A tuple that contains a prepared statement that is ready to be executed, and an eventual row adapter.
Declaration
Swift
public func prepare(_ db: Database) throws -> (SelectStatement, RowAdapter?)