createRequest method
Constructs and returns a request command packet.
Implementation
Uint8List createRequest() {
List<int> encoded = utf8.encode(sql);
var buffer = FixedWriteBuffer(encoded.length + 1);
buffer.byte = COM_STMT_PREPARE;
buffer.writeList(encoded);
return buffer.data;
}