MySQLColumnDefinitionPacket class
Representa um pacote de definição de coluna (Column Definition Packet) no protocolo MySQL.
Esse pacote contém informações sobre uma coluna retornada em um result set, tais como o catálogo, esquema, nome da tabela, nome da coluna, charset, tamanho da coluna, tipo de dados, flags e número de decimais.
- Inheritance
-
- Object
- MySQLPacketPayload
- MySQLColumnDefinitionPacket
Constructors
- MySQLColumnDefinitionPacket.new({required String catalog, required String schema, required String table, required String orgTable, required String name, required String orgName, required int charset, required int columnLength, required MySQLColumnType type, required int flags, required int decimals})
- Construtor do pacote de definição de coluna.
- MySQLColumnDefinitionPacket.decode(Uint8List buffer)
-
Decodifica um Uint8List recebido do servidor MySQL e constrói
um objeto MySQLColumnDefinitionPacket.
factory
Properties
- catalog → String
-
Nome do catálogo da coluna.
final
- charset → int
-
Charset utilizado na coluna (collation).
final
- columnLength → int
-
Tamanho (máximo) da coluna em bytes ou caracteres, dependendo do tipo.
final
- decimals → int
-
Número de decimais (para colunas numéricas).
final
- flags → int
-
Flags da coluna (por exemplo, se é unsigned, binária, etc.).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Nome da coluna (alias/
AS
).final - orgName → String
-
Nome original da coluna.
final
- orgTable → String
-
Nome original da tabela.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schema → String
-
Nome do esquema (database) da coluna.
final
- table → String
-
Nome da tabela (alias/
AS
).final - type → MySQLColumnType
-
Tipo de dado da coluna (ex.: 0xfd = varString, 0xfc = blob, etc.).
final
Methods
-
encode(
) → Uint8List -
override
-
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