Skip to content

Instance Method

all(decodingColumn:as:)

Returns the named column from each output row, if any, decoded as a given type.
func all<D>(decodingColumn column: String, as type: D.Type) async throws -> [D] where D : Decodable

Parameters

column

The name of the column to decode.

type

The type of the desired values.

Return Value

The decoded values, if any.

See Also

Getting All Rows