module MySQL::Types

Defined in:

mysql/types.cr

Constant Summary

IGNORE_FIELD = pointerof(IGNORE_FIELD_RAW)
IGNORE_FIELD_RAW = LibMySQL::MySQLField.new
VALUE_DISPATCH = {LibMySQL::MySQLFieldType::MYSQL_TYPE_SHORT => Integer, LibMySQL::MySQLFieldType::MYSQL_TYPE_LONG => Integer, LibMySQL::MySQLFieldType::MYSQL_TYPE_LONGLONG => BigInteger, LibMySQL::MySQLFieldType::MYSQL_TYPE_INT24 => Integer, LibMySQL::MySQLFieldType::MYSQL_TYPE_YEAR => Integer, LibMySQL::MySQLFieldType::MYSQL_TYPE_DECIMAL => Float, LibMySQL::MySQLFieldType::MYSQL_TYPE_FLOAT => Float, LibMySQL::MySQLFieldType::MYSQL_TYPE_DOUBLE => Float, LibMySQL::MySQLFieldType::MYSQL_TYPE_NEWDECIMAL => Float, LibMySQL::MySQLFieldType::MYSQL_TYPE_TIMESTAMP => Datetime, LibMySQL::MySQLFieldType::MYSQL_TYPE_DATETIME => Datetime, LibMySQL::MySQLFieldType::MYSQL_TYPE_DATE => SqlDate, LibMySQL::MySQLFieldType::MYSQL_TYPE_BIT => Bit, LibMySQL::MySQLFieldType::MYSQL_TYPE_TINY => Boolean, LibMySQL::MySQLFieldType::MYSQL_TYPE_NULL => Null, LibMySQL::MySQLFieldType::MYSQL_TYPE_TINY_BLOB => Blob, LibMySQL::MySQLFieldType::MYSQL_TYPE_MEDIUM_BLOB => Blob, LibMySQL::MySQLFieldType::MYSQL_TYPE_LONG_BLOB => Blob, LibMySQL::MySQLFieldType::MYSQL_TYPE_BLOB => Blob}