Skip to content

Instance Method

all(decoding:with:)

Using the given SQLRowDecoder, returns the output rows, if any, decoded as a given type.
func all<D>(decoding type: D.Type, with decoder: SQLRowDecoder) async throws -> [D] where D : Decodable

Parameters

type

The type of the desired values.

decoder

A configured SQLRowDecoder to use.

Return Value

The decoded values, if any.

See Also

Getting All Rows