Skip to content

Releases: novi/mysql-swift

0.9.5

21 Jan 10:57
74f32e3
Compare
Choose a tag to compare

Updates for Swift 5.2, 5.3

0.9.4

08 Aug 17:26
355d4db
Compare
Choose a tag to compare
  • Updates for Swift 5
  • Support MySQL 8 on macOS

0.9.2

03 Sep 10:29
0b25e17
Compare
Choose a tag to compare
  • Support DateComponents decoding and encoding for MySQL date and time types. See #25 .
  • Add escape method good for LIKE operator (SQLString.escapeForLike()).
  • QueryStatus.affectedRows will be nil when the result is an error or the query is SELECT statement.

Renamed:

  • ConnectionPool.options -> ConnectionPool.option
  • ConnectionPool.init(options:) -> ConnectionPool.init(option:)

(Thanks @florianreinhart)

Codable support

29 May 05:25
6d083ea
Compare
Choose a tag to compare

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 )

0.9.0-beta.1

27 Feb 09:01
667f561
Compare
Choose a tag to compare
0.9.0-beta.1 Pre-release
Pre-release

Added

  • Codable support for query parameter and results (#69, #58)

(Thanks @patrick-zippenfenig, @florianreinhart )

Deprecated

  • SQLEnumType
  • QueryRowResultType

0.8.2

22 Dec 09:44
Compare
Choose a tag to compare
  • Add support for Foundation's Decimal type for query parameter and row decoding (Thanks @florianreinhart )