 //
 //  MySqlColumn.swift
-//  mysql_ui
+//  SwiftMySql
 //
 //  Created by William Burton on 05/02/2017.
 //  Copyright © 2017 William Burton. All rights reserved.

}

struct MySqlColumn {
    let ordinal: Int
    let name: String
    let length: UInt64
    let maxLength: UInt64
    let decimals: Int
    let type: MySqlFieldTypes
    
    var description: String {
        return "\(name), \(type), \(length), \(maxLength), \(decimals)"
    }
    
    init(field: MYSQL_FIELD, ordinal: Int) {
        self.ordinal = ordinal
        
        if let name = String(utf8String: UnsafePointer<CChar>(field.name)) {

import SwiftCMySqlMac
import Foundation

public enum MySqlFieldTypes: Int {
    case    decimal,
            tiny,
            short,
