Skip to content

Instance Method

decode(_:from:)

Convert the given SQLiteData into a value of type T, if possible.
func decode<T>(_ type: T.Type, from data: SQLiteData) throws -> T where T : Decodable

Parameters

type

The desired result type.

data

The data to decode.

Return Value

The decoded value, if successful.