Skip to content

Instance Method

decode(_:from:)

Decode a value of type T from the given SQLRow.
func decode<T>(_ type: T.Type, from row: some SQLRow) throws -> T where T : Decodable

Parameters

type

The type to decode.

row

The row containing the data to decode.

Return Value

An instance of type decoded from row.

Discussion

Throws

Any error which occurs during the decoding process.