26#ifndef MYSQLD_MOCK_X_PROTOCOL_ENCODER_INCLUDED
27#define MYSQLD_MOCK_X_PROTOCOL_ENCODER_INCLUDED
34#include "mysqlxclient/xprotocol.h"
42 const Mysqlx::Resultset::ColumnMetaData_FieldType
type,
43 const std::string &value,
const bool is_null);
50 const std::string &error_txt,
const std::string &sql_state);
54 const uint8_t column_type);
Definition: x_protocol_encoder.h:38
void encode_metadata(Mysqlx::Resultset::ColumnMetaData &metadata_msg, const classic_protocol::message::server::ColumnMeta &column)
Definition: x_protocol_encoder.cc:85
Mysqlx::Resultset::ColumnMetaData_FieldType column_type_to_x(const uint8_t column_type)
Definition: x_protocol_encoder.cc:110
void encode_row_field(Mysqlx::Resultset::Row &row_msg, const Mysqlx::Resultset::ColumnMetaData_FieldType type, const std::string &value, const bool is_null)
Definition: x_protocol_encoder.cc:34
void encode_error(Mysqlx::Error &err_msg, const uint16_t error_code, const std::string &error_txt, const std::string &sql_state)
Definition: x_protocol_encoder.cc:101
borrowable::message::server::ColumnMeta< false > ColumnMeta
Definition: classic_protocol_message.h:1415
Definition: mock_server_component.h:36
required string type
Definition: replication_group_member_actions.proto:34
Generic Error message.
Definition: mysqlx.proto:266
Row in a Resultset.
Definition: mysqlx_resultset.proto:589