Skip to content

Instance Method

all(decoding:)

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

Parameters

type

The type of the desired values.

Return Value

The decoded values, if any.

See Also

Getting All Rows