26#ifndef MYSQL_ROUTER_CLASSIC_PROTOCOL_SESSION_TRACK_H_
27#define MYSQL_ROUTER_CLASSIC_PROTOCOL_SESSION_TRACK_H_
44template <
bool Borrowed>
48 std::conditional_t<Borrowed, std::string_view, std::string>;
53 constexpr uint8_t
type() const noexcept {
return type_; }
61template <
bool Borrowed>
71template <
bool Borrowed>
75 std::conditional_t<Borrowed, std::string_view, std::string>;
87template <
bool Borrowed>
98template <
bool Borrowed>
102 std::conditional_t<Borrowed, std::string_view, std::string>;
112template <
bool Borrowed>
145template <
bool Borrowed>
149 std::conditional_t<Borrowed, std::string_view, std::string>;
153 constexpr uint8_t
spec() const noexcept {
return spec_; }
161template <
bool Borrowed>
258template <
bool Borrowed>
262 std::conditional_t<Borrowed, std::string_view, std::string>;
273template <
bool Borrowed>
Field of a session-track array.
Definition: classic_protocol_session_track.h:45
uint8_t type_
Definition: classic_protocol_session_track.h:57
string_type data_
Definition: classic_protocol_session_track.h:58
constexpr string_type data() const noexcept
Definition: classic_protocol_session_track.h:54
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_session_track.h:48
constexpr uint8_t type() const noexcept
Definition: classic_protocol_session_track.h:53
constexpr Field(uint8_t type, string_type data)
Definition: classic_protocol_session_track.h:50
gtid changed.
Definition: classic_protocol_session_track.h:146
constexpr string_type gtid() const
Definition: classic_protocol_session_track.h:154
string_type gtid_
Definition: classic_protocol_session_track.h:158
constexpr Gtid(uint8_t spec, string_type gtid)
Definition: classic_protocol_session_track.h:150
constexpr uint8_t spec() const noexcept
Definition: classic_protocol_session_track.h:153
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_session_track.h:149
uint8_t spec_
Definition: classic_protocol_session_track.h:157
schema changed.
Definition: classic_protocol_session_track.h:99
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_session_track.h:102
constexpr Schema(string_type schema)
Definition: classic_protocol_session_track.h:104
constexpr string_type schema() const noexcept
Definition: classic_protocol_session_track.h:106
string_type schema_
Definition: classic_protocol_session_track.h:109
state changed.
Definition: classic_protocol_session_track.h:122
constexpr State(int8_t state)
Definition: classic_protocol_session_track.h:124
constexpr int8_t state() const noexcept
Definition: classic_protocol_session_track.h:126
int8_t state_
Definition: classic_protocol_session_track.h:129
system-variable changed.
Definition: classic_protocol_session_track.h:72
string_type key_
Definition: classic_protocol_session_track.h:83
constexpr string_type key() const noexcept
Definition: classic_protocol_session_track.h:79
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_session_track.h:75
constexpr string_type value() const noexcept
Definition: classic_protocol_session_track.h:80
constexpr SystemVariable(string_type key, string_type value)
Definition: classic_protocol_session_track.h:76
string_type value_
Definition: classic_protocol_session_track.h:84
TransactionCharacteristics changed.
Definition: classic_protocol_session_track.h:259
std::conditional_t< Borrowed, std::string_view, std::string > string_type
Definition: classic_protocol_session_track.h:262
string_type characteristics_
Definition: classic_protocol_session_track.h:270
constexpr string_type characteristics() const
Definition: classic_protocol_session_track.h:267
constexpr TransactionCharacteristics(string_type characteristics)
Definition: classic_protocol_session_track.h:264
TransactionState changed.
Definition: classic_protocol_session_track.h:195
constexpr char write_trx() const noexcept
Definition: classic_protocol_session_track.h:224
constexpr char read_unsafe() const noexcept
Definition: classic_protocol_session_track.h:221
char read_unsafe_
Definition: classic_protocol_session_track.h:231
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:197
char write_unsafe_
Definition: classic_protocol_session_track.h:233
char trx_type_
Definition: classic_protocol_session_track.h:230
constexpr char resultset() const noexcept
Definition: classic_protocol_session_track.h:226
constexpr char trx_type() const noexcept
Definition: classic_protocol_session_track.h:220
constexpr char write_unsafe() const noexcept
Definition: classic_protocol_session_track.h:223
char resultset_
Definition: classic_protocol_session_track.h:236
constexpr char read_trx() const noexcept
Definition: classic_protocol_session_track.h:222
char read_trx_
Definition: classic_protocol_session_track.h:232
constexpr char locked_tables() const noexcept
Definition: classic_protocol_session_track.h:227
char stmt_unsafe_
Definition: classic_protocol_session_track.h:235
constexpr char stmt_unsafe() const noexcept
Definition: classic_protocol_session_track.h:225
char locked_tables_
Definition: classic_protocol_session_track.h:237
char write_trx_
Definition: classic_protocol_session_track.h:234
constexpr TransactionState(std::span< char, 8 > val)
Definition: classic_protocol_session_track.h:210
bool operator==(const Field< Borrowed > &a, const Field< Borrowed > &b)
Definition: classic_protocol_session_track.h:62
constexpr value_type session_track
Definition: classic_protocol_constants.h:61
borrowable::session_track::TransactionState TransactionState
Definition: classic_protocol_session_track.h:298
borrowable::session_track::State State
Definition: classic_protocol_session_track.h:301
Definition: classic_protocol_binary.h:39
Definition: gcs_xcom_synode.h:64