FieldTypes enum

Enumeration of all supported MySQL field types.

This enum provides a comprehensive list of MySQL data types that can be used when defining table fields. Each enum value corresponds to a specific MySQL data type.

Inheritance
Implemented types
Available extensions

Values

INT → const FieldTypes

Integer types

const FieldTypes('INT')
BIGINT → const FieldTypes
const FieldTypes('BIGINT')
MEDIUMINT → const FieldTypes
const FieldTypes('MEDIUMINT')
SMALLINT → const FieldTypes
const FieldTypes('SMALLINT')
TINYINT → const FieldTypes
const FieldTypes('TINYINT')
CHAR → const FieldTypes

String types

const FieldTypes('CHAR')
VARCHAR → const FieldTypes
const FieldTypes('VARCHAR')
FLOAT → const FieldTypes

Floating-point types

const FieldTypes('FLOAT')
DECIMAL → const FieldTypes
const FieldTypes('DECIMAL')
BOOLEAN → const FieldTypes

Boolean type

const FieldTypes('BOOLEAN')
TEXT → const FieldTypes

Text types

const FieldTypes('TEXT')
TINYTEXT → const FieldTypes
const FieldTypes('TINYTEXT')
MEDIUMTEXT → const FieldTypes
const FieldTypes('MEDIUMTEXT')
LONGTEXT → const FieldTypes
const FieldTypes('LONGTEXT')
DATE → const FieldTypes

Date and time types

const FieldTypes('DATE')
DATETIME → const FieldTypes
const FieldTypes('DATETIME')
TIMESTAMP → const FieldTypes
const FieldTypes('TIMESTAMP')
TIME → const FieldTypes
const FieldTypes('TIME')
YEAR → const FieldTypes
const FieldTypes('YEAR')
BIT → const FieldTypes

Binary types

const FieldTypes('BIT')
BINARY → const FieldTypes
const FieldTypes('BINARY')
VARBINARY → const FieldTypes
const FieldTypes('VARBINARY')
BLOB → const FieldTypes

BLOB types

const FieldTypes('BLOB')
MEDIUMBLOB → const FieldTypes
const FieldTypes('MEDIUMBLOB')
LONGBLOB → const FieldTypes
const FieldTypes('LONGBLOB')
TINYBLOB → const FieldTypes
const FieldTypes('TINYBLOB')
ENUM → const FieldTypes

Special types

const FieldTypes('ENUM')
SET → const FieldTypes
const FieldTypes('SET')
JSON → const FieldTypes
const FieldTypes('JSON')
POINT → const FieldTypes

Spatial types

const FieldTypes('POINT')
POLYGON → const FieldTypes
const FieldTypes('POLYGON')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sqlType String
The SQL type name for this field type
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toSQL() String
Returns the SQL representation of this field type
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<FieldTypes>
A constant List of the values in this enum, in order of their declaration.