MySQLPacketCommInitDB class
Representa o comando INIT DB no protocolo MySQL.
Esse comando é utilizado para selecionar um banco de dados específico logo após a conexão ser estabelecida. O pacote contém:
- Um byte de comando (valor 2).
- O nome do schema (banco de dados) em formato UTF-8.
- Inheritance
-
- Object
- MySQLPacketPayload
- MySQLPacketCommInitDB
Constructors
- MySQLPacketCommInitDB.new({required String schemaName})
- Construtor da classe.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schemaName → String
-
Nome do schema (banco de dados) a ser selecionado.
final
Methods
-
encode(
) → Uint8List -
Codifica o comando INIT DB 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