26#ifndef MYSQL_ROUTER_CLASSIC_PROTOCOL_MESSAGE_H_
27#define MYSQL_ROUTER_CLASSIC_PROTOCOL_MESSAGE_H_
43 non_blocking = 1 << 0,
60 non_blocking = 1 << 0,
61 through_position = 1 << 1,
62 through_gtid = 1 << 2,
83template <
bool Borrowed>
87 std::conditional_t<Borrowed, std::string_view, std::string>;
99 return "mysql_native_password";
101 return "old_password";
117template <
bool Borrowed>
121 std::conditional_t<Borrowed, std::string_view, std::string>;
183template <
bool Borrowed>
196template <
bool Borrowed>
200 std::conditional_t<Borrowed, std::string_view, std::string>;
217template <
bool Borrowed>
239template <
bool Borrowed>
243 std::conditional_t<Borrowed, std::string_view, std::string>;
254template <
bool Borrowed>
270template <
bool Borrowed>
274 std::conditional_t<Borrowed, std::string_view, std::string>;
276 constexpr Ok() =
default;
329template <
bool Borrowed>
342template <
bool Borrowed>
346 std::conditional_t<Borrowed, std::string_view, std::string>;
350 using base__::base__;
353 constexpr Eof() =
default;
370template <
bool Borrowed>
374 std::conditional_t<Borrowed, std::string_view, std::string>;
403template <
bool Borrowed>
431template <
bool Borrowed>
435 std::conditional_t<Borrowed, std::string_view, std::string>;
483template <
bool Borrowed>
501template <
bool Borrowed>
505 std::conditional_t<Borrowed, std::string_view, std::string>;
519template <
bool Borrowed>
521 auto a_iter = a.
begin();
523 auto b_iter = b.
begin();
524 const auto b_end = b.
end();
526 for (; a_iter !=
a_end && b_iter != b_end; ++a_iter, ++b_iter) {
527 if (*a_iter != *b_iter)
return false;
533template <
bool Borrowed>
543 std::vector<Row<Borrowed>>
rows()
const {
return rows_; }
612template <
bool Borrowed>
620 std::vector<value_type> fields)
623 std::vector<field_type::value_type>
types()
const {
return types_; }
626 std::vector<field_type::value_type>
types_;
629template <
bool Borrowed>
633 std::conditional_t<Borrowed, std::string_view, std::string>;
648template <
bool Borrowed>
654template <
bool Borrowed>
658 std::conditional_t<Borrowed, std::string_view, std::string>;
673template <
bool Borrowed>
683template <
bool Borrowed>
687 std::conditional_t<Borrowed, std::string_view, std::string>;
773template <
bool Borrowed>
785template <
bool Borrowed>
789 std::conditional_t<Borrowed, std::string_view, std::string>;
820template <
bool Borrowed>
825template <
bool Borrowed>
829 std::conditional_t<Borrowed, std::string_view, std::string>;
856template <
bool Borrowed>
862template <
bool Borrowed>
866 std::conditional_t<Borrowed, std::string_view, std::string>;
881template <
bool Borrowed>
887template <
bool Borrowed>
891 std::conditional_t<Borrowed, std::string_view, std::string>;
930template <
bool Borrowed>
995template <
bool Borrowed>
999 std::conditional_t<Borrowed, std::string_view, std::string>;
1014template <
bool Borrowed>
1020template <
bool Borrowed>
1024 std::conditional_t<Borrowed, std::string_view, std::string>;
1039template <
bool Borrowed>
1048template <
bool Borrowed>
1052 std::conditional_t<Borrowed, std::string_view, std::string>;
1077template <
bool Borrowed>
1089template <
bool Borrowed>
1093 std::conditional_t<Borrowed, std::string_view, std::string>;
1125 std::vector<ParamDef>
types, std::vector<value_type>
values)
1149template <
bool Borrowed>
1260template <
bool Borrowed>
1264 std::conditional_t<Borrowed, std::string_view, std::string>;
1280template <
bool Borrowed>
1294template <
bool Borrowed>
1298 std::conditional_t<Borrowed, std::string_view, std::string>;
1322template <
bool Borrowed>
1326 std::conditional_t<Borrowed, std::string_view, std::string>;
1354template <
bool Borrowed>
1358 std::conditional_t<Borrowed, std::string_view, std::string>;
1376 [[nodiscard]]
constexpr uint16_t
port()
const {
return port_; }
1398using Ok = borrowable::message::server::Ok<false>;
1399using Error = borrowable::message::server::Error<false>;
1400using Eof = borrowable::message::server::Eof<false>;
1401using Greeting = borrowable::message::server::Greeting<false>;
1403using ColumnMeta = borrowable::message::server::ColumnMeta<false>;
1407using Row = borrowable::message::server::Row<false>;
1408using StmtRow = borrowable::message::server::StmtRow<false>;
1410using Statistics = borrowable::message::server::Statistics<false>;
1445using Ok = borrowable::message::server::Ok<true>;
1446using Error = borrowable::message::server::Error<true>;
1447using Eof = borrowable::message::server::Eof<true>;
1448using Greeting = borrowable::message::server::Greeting<true>;
1454using Row = borrowable::message::server::Row<true>;
1455using StmtRow = borrowable::message::server::StmtRow<true>;
Class representing an error.
Definition: error.h:48
AuthMethod of classic protocol.
Definition: classic_protocol_message.h:84
constexpr string_type name() const
Definition: classic_protocol_message.h:94
const classic_protocol::capabilities::value_type capabilities_
Definition: classic_protocol_message.h:109
const string_type auth_method_name_
Definition: classic_protocol_message.h:110
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_message.h:87
AuthMethod(classic_protocol::capabilities::value_type capabilities, string_type auth_method_name)
Definition: classic_protocol_message.h:89
Definition: classic_protocol_message.h:1261
constexpr string_type auth_method_data() const
Definition: classic_protocol_message.h:1274
string_type auth_method_data_
Definition: classic_protocol_message.h:1277
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_message.h:1264
constexpr AuthMethodData(string_type auth_method_data)
send data for the current auth-method to server.
Definition: classic_protocol_message.h:1271
Definition: classic_protocol_message.h:1323
constexpr uint64_t position() const
Definition: classic_protocol_message.h:1343
constexpr stdx::flags< Flags > flags() const
Definition: classic_protocol_message.h:1340
string_type filename_
Definition: classic_protocol_message.h:1349
uint32_t server_id_
Definition: classic_protocol_message.h:1348
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_message.h:1326
stdx::flags< Flags > flags_
Definition: classic_protocol_message.h:1347
constexpr string_type sids() const
Definition: classic_protocol_message.h:1344
string_type sids_
Definition: classic_protocol_message.h:1351
constexpr string_type filename() const
Definition: classic_protocol_message.h:1342
typename classic_protocol::message::client::impl::BinlogDumpGtid::Flags Flags
Definition: classic_protocol_message.h:1329
uint64_t position_
Definition: classic_protocol_message.h:1350
constexpr uint32_t server_id() const
Definition: classic_protocol_message.h:1341
constexpr BinlogDumpGtid(stdx::flags< Flags > flags, uint32_t server_id, string_type filename, uint64_t position, string_type sids)
Definition: classic_protocol_message.h:1331
Definition: classic_protocol_message.h:1295
constexpr stdx::flags< Flags > flags() const
Definition: classic_protocol_message.h:1310
string_type filename_
Definition: classic_protocol_message.h:1319
uint32_t server_id_
Definition: classic_protocol_message.h:1318
constexpr uint64_t position() const
Definition: classic_protocol_message.h:1313
stdx::flags< Flags > flags_
Definition: classic_protocol_message.h:1317
uint32_t position_
Definition: classic_protocol_message.h:1316
constexpr BinlogDump(stdx::flags< Flags > flags, uint32_t server_id, string_type filename, uint32_t position)
Definition: classic_protocol_message.h:1303
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_message.h:1298
constexpr uint32_t server_id() const
Definition: classic_protocol_message.h:1311
constexpr string_type filename() const
Definition: classic_protocol_message.h:1312
typename classic_protocol::message::client::impl::BinlogDump::Flags Flags
Definition: classic_protocol_message.h:1301
Definition: classic_protocol_message.h:888
constexpr ChangeUser(string_type username, string_type auth_method_data, string_type schema, uint16_t collation, string_type auth_method_name, string_type attributes)
construct a ChangeUser message.
Definition: classic_protocol_message.h:902
string_type attributes_
Definition: classic_protocol_message.h:927
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_message.h:891
string_type username_
Definition: classic_protocol_message.h:922
constexpr string_type attributes() const
Definition: classic_protocol_message.h:919
uint16_t collation_
Definition: classic_protocol_message.h:925
constexpr string_type auth_method_name() const
Definition: classic_protocol_message.h:916
constexpr uint8_t collation() const noexcept
Definition: classic_protocol_message.h:912
string_type auth_method_data_
Definition: classic_protocol_message.h:923
constexpr string_type username() const
Definition: classic_protocol_message.h:913
constexpr string_type auth_method_data() const
Definition: classic_protocol_message.h:914
constexpr string_type schema() const
Definition: classic_protocol_message.h:915
string_type schema_
Definition: classic_protocol_message.h:924
string_type auth_method_name_
Definition: classic_protocol_message.h:926
Definition: classic_protocol_message.h:1292
Definition: classic_protocol_message.h:684
constexpr string_type schema() const
Definition: classic_protocol_message.h:741
constexpr void schema(const string_type &schema)
Definition: classic_protocol_message.h:742
constexpr string_type auth_method_data() const
Definition: classic_protocol_message.h:736
string_type auth_method_name_
Definition: classic_protocol_message.h:769
constexpr void capabilities(classic_protocol::capabilities::value_type caps)
Definition: classic_protocol_message.h:719
uint32_t max_packet_size_
Definition: classic_protocol_message.h:764
constexpr string_type auth_method_name() const
name of the auth-method that was explicitly set.
Definition: classic_protocol_message.h:751
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_message.h:687
uint8_t collation_
Definition: classic_protocol_message.h:765
constexpr void collation(uint8_t coll) noexcept
Definition: classic_protocol_message.h:731
constexpr uint8_t collation() const noexcept
Definition: classic_protocol_message.h:730
string_type username_
Definition: classic_protocol_message.h:766
constexpr void username(const string_type &v)
Definition: classic_protocol_message.h:734
constexpr Greeting(classic_protocol::capabilities::value_type capabilities, uint32_t max_packet_size, uint8_t collation, string_type username, string_type auth_method_data, string_type schema, string_type auth_method_name, string_type attributes)
construct a client::Greeting message.
Definition: classic_protocol_message.h:701
constexpr classic_protocol::capabilities::value_type capabilities() const
Definition: classic_protocol_message.h:715
constexpr void max_packet_size(uint32_t sz) noexcept
Definition: classic_protocol_message.h:726
constexpr void auth_method_data(const string_type &v)
Definition: classic_protocol_message.h:737
string_type attributes_
Definition: classic_protocol_message.h:770
constexpr uint32_t max_packet_size() const noexcept
Definition: classic_protocol_message.h:723
constexpr void attributes(const string_type &attrs)
Definition: classic_protocol_message.h:760
constexpr string_type attributes() const
Definition: classic_protocol_message.h:758
constexpr string_type username() const
Definition: classic_protocol_message.h:733
classic_protocol::capabilities::value_type capabilities_
Definition: classic_protocol_message.h:763
string_type auth_method_data_
Definition: classic_protocol_message.h:767
constexpr void auth_method_name(const string_type &name)
Definition: classic_protocol_message.h:753
string_type schema_
Definition: classic_protocol_message.h:768
Definition: classic_protocol_message.h:863
string_type schema_
Definition: classic_protocol_message.h:878
constexpr InitSchema(string_type schema)
construct a InitSchema message.
Definition: classic_protocol_message.h:873
constexpr string_type schema() const
Definition: classic_protocol_message.h:875
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_message.h:866
Definition: classic_protocol_message.h:976
uint32_t connection_id_
Definition: classic_protocol_message.h:988
constexpr uint32_t connection_id() const
Definition: classic_protocol_message.h:985
constexpr Kill(uint32_t connection_id)
construct a Kill message.
Definition: classic_protocol_message.h:983
Definition: classic_protocol_message.h:826
constexpr string_type table_name() const
Definition: classic_protocol_message.h:848
constexpr ListFields(string_type table_name, string_type wildcard)
list columns of a table.
Definition: classic_protocol_message.h:845
string_type table_name_
Definition: classic_protocol_message.h:852
constexpr string_type wildcard() const
Definition: classic_protocol_message.h:849
string_type wildcard_
Definition: classic_protocol_message.h:853
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_message.h:829
Definition: classic_protocol_message.h:1256
Definition: classic_protocol_message.h:786
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_message.h:789
constexpr string_type statement() const
Definition: classic_protocol_message.h:811
string_type statement_
Definition: classic_protocol_message.h:816
Query(string_type statement)
Definition: classic_protocol_message.h:800
Query(string_type statement, std::vector< Param > values)
construct a Query message with values.
Definition: classic_protocol_message.h:808
std::vector< Param > values_
Definition: classic_protocol_message.h:817
std::vector< Param > values() const
Definition: classic_protocol_message.h:813
Definition: classic_protocol_message.h:1251
Definition: classic_protocol_message.h:1355
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_message.h:1358
uint32_t server_id_
Definition: classic_protocol_message.h:1383
string_type password_
Definition: classic_protocol_message.h:1386
constexpr RegisterReplica(uint32_t server_id, string_type hostname, string_type username, string_type password, uint16_t port, uint32_t replication_rank, uint32_t master_id)
Definition: classic_protocol_message.h:1360
constexpr string_type password() const
Definition: classic_protocol_message.h:1375
uint32_t replication_rank_
Definition: classic_protocol_message.h:1388
uint16_t port_
Definition: classic_protocol_message.h:1387
constexpr uint32_t master_id() const
Definition: classic_protocol_message.h:1380
constexpr uint32_t replication_rank() const
Definition: classic_protocol_message.h:1377
constexpr uint32_t server_id() const
Definition: classic_protocol_message.h:1372
constexpr string_type username() const
Definition: classic_protocol_message.h:1374
constexpr string_type hostname() const
Definition: classic_protocol_message.h:1373
string_type username_
Definition: classic_protocol_message.h:1385
string_type hostname_
Definition: classic_protocol_message.h:1384
uint32_t master_id_
Definition: classic_protocol_message.h:1389
constexpr uint16_t port() const
Definition: classic_protocol_message.h:1376
Definition: classic_protocol_message.h:954
classic_protocol::reload_cmds::value_type cmds_
Definition: classic_protocol_message.h:969
constexpr Reload(classic_protocol::reload_cmds::value_type cmds)
construct a Reload message.
Definition: classic_protocol_message.h:961
constexpr classic_protocol::reload_cmds::value_type cmds() const
Definition: classic_protocol_message.h:964
Definition: classic_protocol_message.h:941
Definition: classic_protocol_message.h:996
constexpr string_type payload() const
Definition: classic_protocol_message.h:1008
string_type payload_
Definition: classic_protocol_message.h:1011
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_message.h:999
constexpr SendFile(string_type payload)
construct a SendFile message.
Definition: classic_protocol_message.h:1006
set options on the current connection.
Definition: classic_protocol_message.h:1231
constexpr SetOption(uint16_t option)
construct a SetOption message.
Definition: classic_protocol_message.h:1238
constexpr uint16_t option() const
Definition: classic_protocol_message.h:1240
uint16_t option_
Definition: classic_protocol_message.h:1243
Definition: classic_protocol_message.h:948
close a prepared statement.
Definition: classic_protocol_message.h:1161
constexpr uint32_t statement_id() const
Definition: classic_protocol_message.h:1170
constexpr StmtClose(uint32_t statement_id)
construct a StmtClose message.
Definition: classic_protocol_message.h:1168
uint32_t statement_id_
Definition: classic_protocol_message.h:1173
execute a prepared statement.
Definition: classic_protocol_message.h:1090
bool new_params_bound() const noexcept
Definition: classic_protocol_message.h:1136
std::vector< value_type > values_
Definition: classic_protocol_message.h:1146
std::optional< string_type > value_type
Definition: classic_protocol_message.h:1095
uint32_t iteration_count() const noexcept
Definition: classic_protocol_message.h:1135
std::vector< value_type > values() const
Definition: classic_protocol_message.h:1138
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_message.h:1093
uint32_t statement_id_
Definition: classic_protocol_message.h:1141
bool new_params_bound_
Definition: classic_protocol_message.h:1144
std::vector< ParamDef > types_
Definition: classic_protocol_message.h:1145
uint32_t statement_id() const noexcept
Definition: classic_protocol_message.h:1133
uint32_t iteration_count_
Definition: classic_protocol_message.h:1143
StmtExecute(uint32_t statement_id, classic_protocol::cursor::value_type flags, uint32_t iteration_count, bool new_params_bound, std::vector< ParamDef > types, std::vector< value_type > values)
construct a ExecuteStmt message.
Definition: classic_protocol_message.h:1123
classic_protocol::cursor::value_type flags() const noexcept
Definition: classic_protocol_message.h:1134
std::vector< ParamDef > types() const
Definition: classic_protocol_message.h:1137
classic_protocol::cursor::value_type flags_
Definition: classic_protocol_message.h:1142
fetch rows from an executed statement.
Definition: classic_protocol_message.h:1205
constexpr uint32_t row_count() const
Definition: classic_protocol_message.h:1217
uint32_t row_count_
Definition: classic_protocol_message.h:1221
constexpr uint32_t statement_id() const
Definition: classic_protocol_message.h:1216
uint32_t statement_id_
Definition: classic_protocol_message.h:1220
constexpr StmtFetch(uint32_t statement_id, uint32_t row_count)
construct a ResetStmt message.
Definition: classic_protocol_message.h:1213
append data to a parameter of a prepared statement.
Definition: classic_protocol_message.h:1049
constexpr string_type data() const
Definition: classic_protocol_message.h:1069
string_type data_
Definition: classic_protocol_message.h:1074
uint16_t param_id_
Definition: classic_protocol_message.h:1073
constexpr uint32_t statement_id() const
Definition: classic_protocol_message.h:1067
constexpr StmtParamAppendData(uint32_t statement_id, uint16_t param_id, string_type data)
construct an append-data-to-parameter message.
Definition: classic_protocol_message.h:1061
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_message.h:1052
constexpr uint16_t param_id() const
Definition: classic_protocol_message.h:1068
uint32_t statement_id_
Definition: classic_protocol_message.h:1072
Definition: classic_protocol_message.h:1021
constexpr StmtPrepare(string_type statement)
construct a PrepareStmt message.
Definition: classic_protocol_message.h:1030
string_type statement_
Definition: classic_protocol_message.h:1036
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_message.h:1024
constexpr string_type statement() const
Definition: classic_protocol_message.h:1033
reset a prepared statement.
Definition: classic_protocol_message.h:1183
uint32_t statement_id_
Definition: classic_protocol_message.h:1195
constexpr uint32_t statement_id() const
Definition: classic_protocol_message.h:1192
constexpr StmtReset(uint32_t statement_id)
construct a ResetStmt message.
Definition: classic_protocol_message.h:1190
Opaque auth-method-data message.
Definition: classic_protocol_message.h:240
string_type auth_method_data_
Definition: classic_protocol_message.h:251
constexpr AuthMethodData(string_type auth_method_data)
Definition: classic_protocol_message.h:245
constexpr string_type auth_method_data() const
Definition: classic_protocol_message.h:248
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_message.h:243
Definition: classic_protocol_message.h:197
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_message.h:200
constexpr AuthMethodSwitch(string_type auth_method, string_type auth_method_data)
Definition: classic_protocol_message.h:204
string_type auth_method_data_
Definition: classic_protocol_message.h:214
string_type auth_method_data() const
Definition: classic_protocol_message.h:210
string_type auth_method() const
Definition: classic_protocol_message.h:209
constexpr AuthMethodSwitch()=default
string_type auth_method_
Definition: classic_protocol_message.h:213
ColumnCount message.
Definition: classic_protocol_message.h:412
constexpr uint64_t count() const noexcept
Definition: classic_protocol_message.h:421
uint64_t count_
Definition: classic_protocol_message.h:424
constexpr ColumnCount(uint64_t count)
construct an ColumnCount message.
Definition: classic_protocol_message.h:419
End of Resultset message.
Definition: classic_protocol_message.h:343
constexpr Eof(classic_protocol::status::value_type status_flags, uint16_t warning_count, string_type message, string_type session_changes)
Definition: classic_protocol_message.h:360
constexpr Eof(classic_protocol::status::value_type status_flags, uint16_t warning_count)
Definition: classic_protocol_message.h:356
Error message.
Definition: classic_protocol_message.h:371
constexpr string_type message() const
Definition: classic_protocol_message.h:394
constexpr string_type sql_state() const
Definition: classic_protocol_message.h:392
string_type message_
Definition: classic_protocol_message.h:399
constexpr uint16_t error_code() const noexcept
Definition: classic_protocol_message.h:390
constexpr Error()=default
constexpr void message(const string_type &msg)
Definition: classic_protocol_message.h:395
string_type sql_state_
Definition: classic_protocol_message.h:400
constexpr Error(uint16_t error_code, string_type message, string_type sql_state="HY000")
construct an Error message.
Definition: classic_protocol_message.h:384
uint16_t error_code_
Definition: classic_protocol_message.h:398
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_message.h:374
constexpr void error_code(uint16_t code)
Definition: classic_protocol_message.h:391
constexpr void sql_state(const string_type &state)
Definition: classic_protocol_message.h:393
Definition: classic_protocol_message.h:118
constexpr uint8_t collation() const noexcept
Definition: classic_protocol_message.h:159
constexpr uint32_t connection_id() const noexcept
Definition: classic_protocol_message.h:169
constexpr classic_protocol::status::value_type status_flags() const noexcept
Definition: classic_protocol_message.h:162
uint32_t connection_id_
Definition: classic_protocol_message.h:175
void status_flags(classic_protocol::status::value_type val)
Definition: classic_protocol_message.h:165
string_type auth_method_data_
Definition: classic_protocol_message.h:176
void collation(uint8_t val)
Definition: classic_protocol_message.h:160
void connection_id(uint32_t val)
Definition: classic_protocol_message.h:170
constexpr Greeting(uint8_t protocol_version, string_type version, uint32_t connection_id, string_type auth_method_data, classic_protocol::capabilities::value_type capabilities, uint8_t collation, classic_protocol::status::value_type status_flags, string_type auth_method_name)
Definition: classic_protocol_message.h:123
string_type version_
Definition: classic_protocol_message.h:174
void auth_method_data(string_type val)
Definition: classic_protocol_message.h:149
constexpr string_type auth_method_name() const
Definition: classic_protocol_message.h:146
classic_protocol::capabilities::value_type capabilities() const noexcept
Definition: classic_protocol_message.h:151
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_message.h:121
uint8_t protocol_version_
Definition: classic_protocol_message.h:173
string_type auth_method_name_
Definition: classic_protocol_message.h:180
uint8_t collation_
Definition: classic_protocol_message.h:178
void version(string_type val)
Definition: classic_protocol_message.h:144
void auth_method_name(string_type val)
Definition: classic_protocol_message.h:147
void protocol_version(uint8_t val)
Definition: classic_protocol_message.h:141
classic_protocol::capabilities::value_type capabilities_
Definition: classic_protocol_message.h:177
constexpr string_type version() const
Definition: classic_protocol_message.h:143
constexpr string_type auth_method_data() const
Definition: classic_protocol_message.h:148
classic_protocol::status::value_type status_flags_
Definition: classic_protocol_message.h:179
void capabilities(classic_protocol::capabilities::value_type caps)
Definition: classic_protocol_message.h:155
constexpr uint8_t protocol_version() const noexcept
Definition: classic_protocol_message.h:138
Ok message.
Definition: classic_protocol_message.h:271
constexpr string_type message() const
Definition: classic_protocol_message.h:307
constexpr uint64_t last_insert_id() const noexcept
Definition: classic_protocol_message.h:301
uint16_t warning_count_
Definition: classic_protocol_message.h:321
constexpr void affected_rows(uint64_t val)
Definition: classic_protocol_message.h:303
constexpr void status_flags(classic_protocol::status::value_type flags)
Definition: classic_protocol_message.h:289
constexpr void last_insert_id(uint64_t val)
Definition: classic_protocol_message.h:300
constexpr void message(const string_type &msg)
Definition: classic_protocol_message.h:306
constexpr void session_changes(const string_type &changes)
Definition: classic_protocol_message.h:309
uint64_t last_insert_id_
Definition: classic_protocol_message.h:322
constexpr classic_protocol::status::value_type status_flags() const noexcept
Definition: classic_protocol_message.h:293
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_message.h:274
string_type message_
Definition: classic_protocol_message.h:325
classic_protocol::status::value_type status_flags_
Definition: classic_protocol_message.h:320
constexpr uint64_t affected_rows() const noexcept
Definition: classic_protocol_message.h:304
constexpr uint16_t warning_count() const noexcept
Definition: classic_protocol_message.h:298
uint64_t affected_rows_
Definition: classic_protocol_message.h:323
string_type session_changes() const
get session-changes.
Definition: classic_protocol_message.h:317
constexpr void warning_count(uint16_t count)
Definition: classic_protocol_message.h:297
constexpr Ok(uint64_t affected_rows, uint64_t last_insert_id, classic_protocol::status::value_type status_flags, uint16_t warning_count, string_type message="", string_type session_changes="")
Definition: classic_protocol_message.h:278
string_type session_changes_
Definition: classic_protocol_message.h:326
Definition: classic_protocol_message.h:534
std::vector< Row< Borrowed > > rows() const
Definition: classic_protocol_message.h:543
std::vector< ColumnMeta< Borrowed > > column_metas() const
Definition: classic_protocol_message.h:540
std::vector< ColumnMeta< Borrowed > > column_metas_
Definition: classic_protocol_message.h:546
std::vector< Row< Borrowed > > rows_
Definition: classic_protocol_message.h:547
ResultSet(std::vector< ColumnMeta< Borrowed > > column_metas, std::vector< Row< Borrowed > > rows)
Definition: classic_protocol_message.h:536
Row in a resultset.
Definition: classic_protocol_message.h:502
typename std::vector< value_type >::const_iterator const_iterator
Definition: classic_protocol_message.h:508
Row(std::vector< value_type > fields)
Definition: classic_protocol_message.h:510
auto begin() const
Definition: classic_protocol_message.h:512
std::vector< value_type > fields_
Definition: classic_protocol_message.h:516
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_message.h:505
std::optional< string_type > value_type
Definition: classic_protocol_message.h:507
auto end() const
Definition: classic_protocol_message.h:513
Definition: classic_protocol_message.h:630
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_message.h:633
constexpr string_type filename() const
Definition: classic_protocol_message.h:642
constexpr SendFileRequest(string_type filename)
construct a SendFileRequest message.
Definition: classic_protocol_message.h:639
string_type filename_
Definition: classic_protocol_message.h:645
Definition: classic_protocol_message.h:655
string_type stats_
Definition: classic_protocol_message.h:670
constexpr Statistics(string_type stats)
construct a Statistics message.
Definition: classic_protocol_message.h:665
constexpr string_type stats() const
Definition: classic_protocol_message.h:667
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_message.h:658
StmtPrepareOk message.
Definition: classic_protocol_message.h:555
constexpr uint16_t param_count() const noexcept
Definition: classic_protocol_message.h:583
constexpr void column_count(uint16_t cnt) noexcept
Definition: classic_protocol_message.h:582
uint8_t with_metadata_
Definition: classic_protocol_message.h:602
constexpr uint16_t column_count() const noexcept
Definition: classic_protocol_message.h:581
constexpr void warning_count(uint16_t cnt) noexcept
Definition: classic_protocol_message.h:579
constexpr void statement_id(uint32_t id) noexcept
Definition: classic_protocol_message.h:577
constexpr uint8_t with_metadata() const noexcept
Definition: classic_protocol_message.h:585
uint32_t statement_id_
Definition: classic_protocol_message.h:598
uint16_t warning_count_
Definition: classic_protocol_message.h:599
constexpr StmtPrepareOk(uint32_t stmt_id, uint16_t column_count, uint16_t param_count, uint16_t warning_count, uint8_t with_metadata)
create a Ok message for a client::StmtPrepare.
Definition: classic_protocol_message.h:567
constexpr friend bool operator==(const StmtPrepareOk &lhs, const StmtPrepareOk &rhs)
Definition: classic_protocol_message.h:588
uint16_t column_count_
Definition: classic_protocol_message.h:601
constexpr uint16_t warning_count() const noexcept
Definition: classic_protocol_message.h:578
constexpr void with_metadata(uint8_t with) noexcept
Definition: classic_protocol_message.h:586
constexpr uint32_t statement_id() const noexcept
Definition: classic_protocol_message.h:576
constexpr void param_count(uint16_t cnt) noexcept
Definition: classic_protocol_message.h:584
uint16_t param_count_
Definition: classic_protocol_message.h:600
StmtRow message.
Definition: classic_protocol_message.h:613
std::vector< field_type::value_type > types_
Definition: classic_protocol_message.h:626
std::vector< field_type::value_type > types() const
Definition: classic_protocol_message.h:623
StmtRow(std::vector< field_type::value_type > types, std::vector< value_type > fields)
Definition: classic_protocol_message.h:619
Definition: classic_protocol_message.h:56
Flags
Definition: classic_protocol_message.h:59
Definition: classic_protocol_message.h:39
Flags
Definition: classic_protocol_message.h:42
a type-safe flags type.
Definition: flags.h:115
static int flags[50]
Definition: hp_test1.cc:40
static int count
Definition: myisam_ftdump.cc:43
uint16_t value_type
Definition: vt100.h:184
constexpr bool operator==(const Greeting< Borrowed > &a, const Greeting< Borrowed > &b)
Definition: classic_protocol_message.h:774
bool operator==(const Greeting< Borrowed > &a, const Greeting< Borrowed > &b)
Definition: classic_protocol_message.h:184
borrowable::message::client::Reload Reload
Definition: classic_protocol_message.h:1470
borrowable::message::client::Kill Kill
Definition: classic_protocol_message.h:1468
borrowable::message::server::ColumnMeta< true > ColumnMeta
Definition: classic_protocol_message.h:1450
borrowable::message::server::StmtPrepareOk StmtPrepareOk
Definition: classic_protocol_message.h:1456
borrowable::message::server::SendFileRequest< true > SendFileRequest
Definition: classic_protocol_message.h:1453
borrowable::message::server::StmtRow< true > StmtRow
Definition: classic_protocol_message.h:1455
borrowable::message::server::Eof< true > Eof
Definition: classic_protocol_message.h:1447
borrowable::message::server::Statistics< true > Statistics
Definition: classic_protocol_message.h:1457
borrowable::message::server::Row< true > Row
Definition: classic_protocol_message.h:1454
borrowable::message::server::AuthMethodData< true > AuthMethodData
Definition: classic_protocol_message.h:1452
borrowable::message::server::Ok< true > Ok
Definition: classic_protocol_message.h:1445
borrowable::message::server::ColumnCount ColumnCount
Definition: classic_protocol_message.h:1449
borrowable::message::server::Greeting< true > Greeting
Definition: classic_protocol_message.h:1448
borrowable::message::server::AuthMethodSwitch< true > AuthMethodSwitch
Definition: classic_protocol_message.h:1451
constexpr value_type plugin_auth
Definition: classic_protocol_constants.h:57
constexpr value_type secure_connection
Definition: classic_protocol_constants.h:53
std::bitset< 32 > value_type
Definition: classic_protocol_constants.h:73
std::bitset< pos::_bitset_size > value_type
Definition: classic_protocol_constants.h:286
std::bitset< pos::_bitset_size > value_type
Definition: classic_protocol_constants.h:220
Definition: classic_protocol_message.h:38
borrowable::message::server::AuthMethodSwitch< false > AuthMethodSwitch
Definition: classic_protocol_message.h:1404
borrowable::message::server::StmtPrepareOk StmtPrepareOk
Definition: classic_protocol_message.h:1409
borrowable::message::server::Greeting< false > Greeting
Definition: classic_protocol_message.h:1401
borrowable::message::server::Row< false > Row
Definition: classic_protocol_message.h:1407
borrowable::message::server::Eof< false > Eof
Definition: classic_protocol_message.h:1400
borrowable::message::server::ColumnCount ColumnCount
Definition: classic_protocol_message.h:1402
borrowable::message::server::Ok< false > Ok
Definition: classic_protocol_message.h:1398
borrowable::message::server::AuthMethodData< false > AuthMethodData
Definition: classic_protocol_message.h:1405
borrowable::message::server::Statistics< false > Statistics
Definition: classic_protocol_message.h:1410
borrowable::message::server::StmtRow< false > StmtRow
Definition: classic_protocol_message.h:1408
borrowable::message::server::SendFileRequest< false > SendFileRequest
Definition: classic_protocol_message.h:1406
borrowable::message::server::ColumnMeta< false > ColumnMeta
Definition: classic_protocol_message.h:1403
std::bitset< pos::_bitset_size > value_type
Definition: classic_protocol_constants.h:319
std::bitset< 16 > value_type
Definition: classic_protocol_constants.h:168
Definition: classic_protocol_binary.h:39
Definition: gcs_xcom_synode.h:64
std::vector< T, ut::allocator< T > > vector
Specialization of vector which uses allocator.
Definition: ut0new.h:2874
case opt name
Definition: sslopt-case.h:33
Definition: classic_protocol_message.h:791
std::optional< string_type > value
Definition: classic_protocol_message.h:794
string_type name
Definition: classic_protocol_message.h:793
uint16_t type_and_flags
Definition: classic_protocol_message.h:792
Param(uint16_t t, string_type n, std::optional< string_type > v)
Definition: classic_protocol_message.h:796
Definition: classic_protocol_message.h:1097
ParamDef(uint16_t type_and_flags_, string_type name_)
Definition: classic_protocol_message.h:1102
uint16_t type_and_flags
Definition: classic_protocol_message.h:1109
string_type name
Definition: classic_protocol_message.h:1110
friend bool operator==(const ParamDef &lhs, const ParamDef &rhs)
Definition: classic_protocol_message.h:1105
ParamDef(uint16_t type_and_flags_)
Definition: classic_protocol_message.h:1100
Definition: server_struct.h:39
Definition: mysqlslap.cc:217
Definition: mysqlslap.cc:238
@ a_end
Definition: task_arg.h:38
unsigned long id[MAX_DEAD]
Definition: xcom_base.cc:510
int n
Definition: xcom_base.cc:509