mysql-swift

A type safe MySQL client for Swift

MIT License

Stars
163
Committers
6

Bot releases are visible (Hide)

mysql-swift - Latest Release

Published by novi over 3 years ago

Updates for Swift 5.2, 5.3

mysql-swift -

Published by novi about 5 years ago

  • Updates for Swift 5
  • Support MySQL 8 on macOS
mysql-swift -

Published by novi about 6 years ago

  • 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)

mysql-swift - Codable support

Published by novi over 6 years ago

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 )

mysql-swift -

Published by novi over 6 years ago

Added

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

(Thanks @patrick-zippenfenig, @florianreinhart )

Deprecated

  • SQLEnumType
  • QueryRowResultType
mysql-swift -

Published by novi almost 7 years ago

  • Add support for Foundation's Decimal type for query parameter and row decoding (Thanks @florianreinhart )
Package Rankings
Top 13.38% on Swiftpackageindex.com
Badges
Extracted from project README
CircleCI