Fluent MySQL 3.0.0 RC 2.5
Pre-release
Pre-release
New:
// `FixedWidthInteger` backed enums are easiest to conform
enum PetType: Int, MySQLEnumType {
case cat, dog
}
// Other enums require `reflectDecoded`
enum FavoriteTreat: String, MySQLEnumType {
case bone = "b"
case tuna = "t"
static func reflectDecoded() -> (FavoriteTreat, FavoriteTreat) {
return (.bone, .tuna)
}
}