Skip to content

Codable support

Compare
Choose a tag to compare
@novi novi released this 29 May 05:25
· 35 commits to master since this release
6d083ea

We've changed row decoder to Swift.Decodable from QueryRowResultType. #69
And accepts Encodable type as query parameters.

Added:

  • Querying with QueryParameterOption (actually TimeZone option)
  • Custom data based type(like JSON, Protobuf) in blob/json column for decoding and encoding
    • Use QueryRowResultCustomData, QueryCustomDataParameter (see this tests.)

Removed:

  • QueryRowResultType, Use Decodable type instead
  • SQLEnumType, Use QueryRawRepresentableParameter or make conforming your enum to Encodable
  • QueryParameterDictionaryType, Use Encodable type instead

Renamed:

  • QueryDictionary -> QueryParameterDictionary
  • QueryArray -> QueryParameterArray

(Thanks @florianreinhart, @patrick-zippenfenig )