class Miner::Field
- Miner::Field
- Reference
- Object
Defined in:
miner/field.crConstant Summary
-
TYPE_MAP =
{"tinyint" => Type::TinyInt, "smallint" => Type::SmallInt, "mediumint" => Type::MediumInt, "int" => Type::Int, "bigint" => Type::BigInt, "float" => Type::Float, "double" => Type::Double, "decimal" => Type::Decimal, "date" => Type::Date, "datetime" => Type::DateTime, "timestamp" => Type::Timestamp, "time" => Type::Time, "year" => Type::Year, "char" => Type::Char, "varchar" => Type::VarChar, "tinyblob" => Type::TinyBlob, "tinytext" => Type::TinyText, "blob" => Type::Blob, "text" => Type::Text, "mediumblob" => Type::MediumBlob, "mediumtext" => Type::MediumText, "longblob" => Type::LongBlob, "longtext" => Type::LongText, "enum" => Type::Enum, "set" => Type::Set}
Constructors
Instance Method Summary
Constructor Detail
def self.new(name : String, type : String | Nil = "varchar", length : String | Int32 | Nil = 255, unsigned : String | Nil = "NO", nullable : String | Nil = "NO", default : String | Nil = nil)
#