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

hashCode int
The hash code for this object.
no setterinherited
intVal int
Retorna o valor inteiro interno que representa o tipo.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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