Open
Description
enum CompassPoint: Int {
case none
case north
case south
case east
case west
}
extension CompassPoint : Bindable, ConstructableFromSQLiteValue {
init(sqliteValue: SQLiteORM.SQLiteValue) {
self = CompassPoint(rawValue: sqliteValue.integer) ?? .none
}
func bind(to binder: Binder) -> Int32 {
return binder.bindInt(value: self.rawValue)
}
public static func sqliteTypeName() -> String {
return "INTEGER"
}
}
🤔