Instance Method
first(decoding:with:)
Using the given
SQLRowDecoder, returns the first output row, if any, decoded as a given type.func first<D>(decoding type: D.Type, with decoder: SQLRowDecoder) async throws -> D? where D : Decodable
Parameters
typeThe type of the desired value.
decoderA configured
SQLRowDecoderto use.
Return Value
The decoded value, if any.
See Also
Getting One Row
first()Returns the first output row, if any.first(decoding:)Using a default-configuredSQLRowDecoder, returns the first output row, if any, decoded as a given type.first(decoding:prefix:keyDecodingStrategy:userInfo:)Configure a newSQLRowDecoderas specified and use it to decode and return the first output row, if any, as a given type.first(decodingColumn:as:)Returns the named column from the first output row, if any, decoded as a given type.