26#ifndef MYSQL_ROUTER_CLASSIC_PROTOCOL_SESSION_TRACK_H_
27#define MYSQL_ROUTER_CLASSIC_PROTOCOL_SESSION_TRACK_H_
43template <
bool Borrowed>
47 std::conditional_t<Borrowed, std::string_view, std::string>;
52 constexpr uint8_t
type() const noexcept {
return type_; }
60template <
bool Borrowed>
70template <
bool Borrowed>
74 std::conditional_t<Borrowed, std::string_view, std::string>;
86template <
bool Borrowed>
97template <
bool Borrowed>
101 std::conditional_t<Borrowed, std::string_view, std::string>;
111template <
bool Borrowed>
144template <
bool Borrowed>
148 std::conditional_t<Borrowed, std::string_view, std::string>;
152 constexpr uint8_t
spec() const noexcept {
return spec_; }
160template <
bool Borrowed>
247template <
bool Borrowed>
251 std::conditional_t<Borrowed, std::string_view, std::string>;
262template <
bool Borrowed>
Field of a session-track array.
Definition: classic_protocol_session_track.h:44
uint8_t type_
Definition: classic_protocol_session_track.h:56
string_type data_
Definition: classic_protocol_session_track.h:57
constexpr string_type data() const noexcept
Definition: classic_protocol_session_track.h:53
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_session_track.h:47
constexpr uint8_t type() const noexcept
Definition: classic_protocol_session_track.h:52
constexpr Field(uint8_t type, string_type data)
Definition: classic_protocol_session_track.h:49
gtid changed.
Definition: classic_protocol_session_track.h:145
constexpr string_type gtid() const
Definition: classic_protocol_session_track.h:153
string_type gtid_
Definition: classic_protocol_session_track.h:157
constexpr Gtid(uint8_t spec, string_type gtid)
Definition: classic_protocol_session_track.h:149
constexpr uint8_t spec() const noexcept
Definition: classic_protocol_session_track.h:152
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_session_track.h:148
uint8_t spec_
Definition: classic_protocol_session_track.h:156
schema changed.
Definition: classic_protocol_session_track.h:98
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_session_track.h:101
constexpr Schema(string_type schema)
Definition: classic_protocol_session_track.h:103
constexpr string_type schema() const noexcept
Definition: classic_protocol_session_track.h:105
string_type schema_
Definition: classic_protocol_session_track.h:108
state changed.
Definition: classic_protocol_session_track.h:121
constexpr State(int8_t state)
Definition: classic_protocol_session_track.h:123
constexpr int8_t state() const noexcept
Definition: classic_protocol_session_track.h:125
int8_t state_
Definition: classic_protocol_session_track.h:128
system-variable changed.
Definition: classic_protocol_session_track.h:71
string_type key_
Definition: classic_protocol_session_track.h:82
constexpr string_type key() const noexcept
Definition: classic_protocol_session_track.h:78
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_session_track.h:74
constexpr string_type value() const noexcept
Definition: classic_protocol_session_track.h:79
constexpr SystemVariable(string_type key, string_type value)
Definition: classic_protocol_session_track.h:75
string_type value_
Definition: classic_protocol_session_track.h:83
TransactionCharacteristics changed.
Definition: classic_protocol_session_track.h:248
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_session_track.h:251
string_type characteristics_
Definition: classic_protocol_session_track.h:259
constexpr string_type characteristics() const
Definition: classic_protocol_session_track.h:256
constexpr TransactionCharacteristics(string_type characteristics)
Definition: classic_protocol_session_track.h:253
TransactionState changed.
Definition: classic_protocol_session_track.h:194
constexpr char write_trx() const noexcept
Definition: classic_protocol_session_track.h:213
constexpr char read_unsafe() const noexcept
Definition: classic_protocol_session_track.h:210
char read_unsafe_
Definition: classic_protocol_session_track.h:220
constexpr TransactionState(char trx_type, char read_unsafe, char read_trx, char write_unsafe, char write_trx, char stmt_unsafe, char resultset, char locked_tables)
Definition: classic_protocol_session_track.h:196
char write_unsafe_
Definition: classic_protocol_session_track.h:222
char trx_type_
Definition: classic_protocol_session_track.h:219
constexpr char resultset() const noexcept
Definition: classic_protocol_session_track.h:215
constexpr char trx_type() const noexcept
Definition: classic_protocol_session_track.h:209
constexpr char write_unsafe() const noexcept
Definition: classic_protocol_session_track.h:212
char resultset_
Definition: classic_protocol_session_track.h:225
constexpr char read_trx() const noexcept
Definition: classic_protocol_session_track.h:211
char read_trx_
Definition: classic_protocol_session_track.h:221
constexpr char locked_tables() const noexcept
Definition: classic_protocol_session_track.h:216
char stmt_unsafe_
Definition: classic_protocol_session_track.h:224
constexpr char stmt_unsafe() const noexcept
Definition: classic_protocol_session_track.h:214
char locked_tables_
Definition: classic_protocol_session_track.h:226
char write_trx_
Definition: classic_protocol_session_track.h:223
bool operator==(const Field< Borrowed > &a, const Field< Borrowed > &b)
Definition: classic_protocol_session_track.h:61
constexpr value_type session_track
Definition: classic_protocol_constants.h:61
borrowable::session_track::TransactionState TransactionState
Definition: classic_protocol_session_track.h:287
borrowable::session_track::State State
Definition: classic_protocol_session_track.h:290
Definition: classic_protocol_binary.h:39
Definition: gcs_xcom_synode.h:64