AdaptedTypedRequest
public struct AdaptedTypedRequest<Base: TypedRequest> : TypedRequest
An adapted typed request.
-
The type that can convert raw database rows to fetched values
Declaration
Swift
public typealias RowDecoder = Base.RowDecoder
-
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?)
Parameters
db
A database connection.
-
The number of rows fetched by the request.
Declaration
Swift
public func fetchCount(_ db: Database) throws -> Int
Parameters
db
A database connection.