createRequest method

Uint8List createRequest()
override

Constructs and returns a request command packet.

Implementation

Uint8List createRequest() {
  var encoded = utf8.encode(sql);
  var buffer = FixedWriteBuffer(encoded.length + 1);
  buffer.byte = COM_QUERY;
  buffer.writeList(encoded);
  return buffer.data;
}