MySQLColumnType class
Representa o tipo de uma coluna no MySQL.
Essa classe encapsula o valor numérico que identifica o tipo de coluna e fornece métodos para converter valores lidos do MySQL para tipos Dart, além de determinar o melhor tipo Dart para representar os dados.
Constructors
- MySQLColumnType.create(int value)
-
Cria uma instância de MySQLColumnType a partir de um valor inteiro.
factory
Properties
Methods
-
convertStringValueToProvidedType<
T> (dynamic value, [int? columnLength]) → T? -
Converte um valor (normalmente lido do MySQL em formato string ou binário)
para o tipo Dart desejado
T
. -
getBestMatchDartType(
int columnLength) → Type -
Retorna o melhor tipo Dart para representar os dados da coluna, levando
em consideração o tamanho da coluna (
columnLength
) e o tipo MySQL (_value). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- bitType → const MySQLColumnType
- blobType → const MySQLColumnType
- dateTime2Type → const MySQLColumnType
- dateTimeType → const MySQLColumnType
- dateType → const MySQLColumnType
- decimalType → const MySQLColumnType
- doubleType → const MySQLColumnType
- enumType → const MySQLColumnType
- floatType → const MySQLColumnType
- geometryType → const MySQLColumnType
- int24Type → const MySQLColumnType
- jsonType → const MySQLColumnType
- Novo: JSON
- longBlobType → const MySQLColumnType
- longLongType → const MySQLColumnType
- longType → const MySQLColumnType
- mediumBlobType → const MySQLColumnType
- newDateType → const MySQLColumnType
- newDecimalType → const MySQLColumnType
- nullType → const MySQLColumnType
- setType → const MySQLColumnType
- shortType → const MySQLColumnType
- stringType → const MySQLColumnType
- time2Type → const MySQLColumnType
- timestamp2Type → const MySQLColumnType
- timestampType → const MySQLColumnType
- timeType → const MySQLColumnType
- tinyBlobType → const MySQLColumnType
- tinyType → const MySQLColumnType
- varCharType → const MySQLColumnType
- varStringType → const MySQLColumnType
- yearType → const MySQLColumnType