novi / mysql-swift

A type safe MySQL client for Swift
MIT License
163 stars 41 forks source link

SQLEnumType deprecation #71

Closed novi closed 6 years ago

novi commented 6 years ago

No need use SQLEnumType in Decodable object.

You could just add Decodable to your enum.

enum UserType: String, Decodable {
    case user = "user"
    case admin = "admin"
}