Releases: novi/mysql-swift
Releases · novi/mysql-swift
0.9.5
0.9.4
0.9.2
- Support
DateComponentsdecoding and encoding for MySQL date and time types. See #25 . - Add escape method good for
LIKEoperator (SQLString.escapeForLike()). QueryStatus.affectedRowswill benilwhen the result is an error or the query isSELECTstatement.
Renamed:
ConnectionPool.options->ConnectionPool.optionConnectionPool.init(options:)->ConnectionPool.init(option:)
(Thanks @florianreinhart)
Codable support
We've changed row decoder to Swift.Decodable from QueryRowResultType. #69
And accepts Encodable type as query parameters.
Added:
- Querying with
QueryParameterOption(actuallyTimeZoneoption) - Custom data based type(like JSON, Protobuf) in blob/json column for decoding and encoding
- Use
QueryRowResultCustomData,QueryCustomDataParameter(see this tests.)
- Use
Removed:
QueryRowResultType, UseDecodabletype insteadSQLEnumType, UseQueryRawRepresentableParameteror make conforming your enum toEncodableQueryParameterDictionaryType, UseEncodabletype instead
Renamed:
QueryDictionary->QueryParameterDictionaryQueryArray->QueryParameterArray
(Thanks @florianreinhart, @patrick-zippenfenig )
0.9.0-beta.1
0.8.2
- Add support for Foundation's Decimal type for query parameter and row decoding (Thanks @florianreinhart )