Instance Method
run(decoding:with:_:)
Using the given
SQLRowDecoder, call the provided handler closure with the result of decoding each output row, if any, as a given type.@preconcurrency func run<D>(decoding type: D.Type, with decoder: SQLRowDecoder, _ handler: @escaping @Sendable (Result<D, any Error>) -> ()) -> EventLoopFuture<Void> where D : Decodable, D : SendableMetatype
Parameters
typeThe type of the desired values.
decoderA configured
SQLRowDecoderto use.handlerA closure which receives the result of each decoding operation, row by row.
Return Value
A completion future.