MySQLPacketCommQuery class

Representa o comando QUERY no protocolo MySQL.

Esse comando é utilizado para enviar uma consulta SQL ao servidor. O pacote contém:

  • Um byte de comando (valor 3).
  • A string da query em formato UTF-8.
Inheritance

Constructors

MySQLPacketCommQuery.new({required String query})
Construtor da classe.

Properties

hashCode int
The hash code for this object.
no setterinherited
query String
Consulta SQL a ser executada.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

encode() Uint8List
Codifica o comando QUERY em um Uint8List para envio ao servidor.
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