MySQL 9.1.0
Source Code Documentation
classic_protocol_constants.h File Reference
#include <bitset>
#include <cstdint>

Go to the source code of this file.

Namespaces

namespace  classic_protocol
 
namespace  classic_protocol::capabilities
 
namespace  classic_protocol::capabilities::pos
 
namespace  classic_protocol::status
 
namespace  classic_protocol::status::pos
 
namespace  classic_protocol::cursor
 
namespace  classic_protocol::cursor::pos
 
namespace  classic_protocol::field_type
 
namespace  classic_protocol::column_def
 
namespace  classic_protocol::column_def::pos
 
namespace  classic_protocol::reload_cmds
 
namespace  classic_protocol::reload_cmds::pos
 
namespace  classic_protocol::collation
 

Typedefs

using classic_protocol::capabilities::pos::value_type = uint8_t
 
using classic_protocol::capabilities::value_type = std::bitset< 32 >
 
using classic_protocol::status::pos::value_type = uint8_t
 
using classic_protocol::status::value_type = std::bitset< 16 >
 
using classic_protocol::cursor::pos::value_type = uint8_t
 
using classic_protocol::cursor::value_type = std::bitset< pos::_bitset_size >
 
using classic_protocol::field_type::value_type = uint8_t
 
using classic_protocol::column_def::pos::value_type = uint8_t
 
using classic_protocol::column_def::value_type = std::bitset< pos::_bitset_size >
 
using classic_protocol::reload_cmds::pos::value_type = uint8_t
 
using classic_protocol::reload_cmds::value_type = std::bitset< pos::_bitset_size >
 
using classic_protocol::collation::value_type = uint8_t
 

Variables

constexpr value_type classic_protocol::capabilities::pos::long_password {0}
 
constexpr value_type classic_protocol::capabilities::pos::found_rows {1}
 
constexpr value_type classic_protocol::capabilities::pos::long_flag {2}
 
constexpr value_type classic_protocol::capabilities::pos::connect_with_schema {3}
 
constexpr value_type classic_protocol::capabilities::pos::no_schema {4}
 
constexpr value_type classic_protocol::capabilities::pos::compress {5}
 
constexpr value_type classic_protocol::capabilities::pos::odbc {6}
 
constexpr value_type classic_protocol::capabilities::pos::local_files {7}
 
constexpr value_type classic_protocol::capabilities::pos::ignore_space {8}
 
constexpr value_type classic_protocol::capabilities::pos::protocol_41 {9}
 
constexpr value_type classic_protocol::capabilities::pos::interactive {10}
 
constexpr value_type classic_protocol::capabilities::pos::ssl {11}
 
constexpr value_type classic_protocol::capabilities::pos::transactions {13}
 
constexpr value_type classic_protocol::capabilities::pos::secure_connection {15}
 
constexpr value_type classic_protocol::capabilities::pos::multi_statements {16}
 
constexpr value_type classic_protocol::capabilities::pos::multi_results {17}
 
constexpr value_type classic_protocol::capabilities::pos::ps_multi_results {18}
 
constexpr value_type classic_protocol::capabilities::pos::plugin_auth {19}
 
constexpr value_type classic_protocol::capabilities::pos::connect_attributes {20}
 
constexpr value_type classic_protocol::capabilities::pos::client_auth_method_data_varint {21}
 
constexpr value_type classic_protocol::capabilities::pos::expired_passwords {22}
 
constexpr value_type classic_protocol::capabilities::pos::session_track {23}
 
constexpr value_type classic_protocol::capabilities::pos::text_result_with_session_tracking {24}
 
constexpr value_type classic_protocol::capabilities::pos::optional_resultset_metadata {25}
 
constexpr value_type classic_protocol::capabilities::pos::compress_zstd {26}
 
constexpr value_type classic_protocol::capabilities::pos::query_attributes {27}
 
constexpr value_type classic_protocol::capabilities::long_password {1 << pos::long_password}
 
constexpr value_type classic_protocol::capabilities::found_rows {1 << pos::found_rows}
 
constexpr value_type classic_protocol::capabilities::long_flag {1 << pos::long_flag}
 
constexpr value_type classic_protocol::capabilities::connect_with_schema {1 << pos::connect_with_schema}
 
constexpr value_type classic_protocol::capabilities::no_schema {1 << pos::no_schema}
 
constexpr value_type classic_protocol::capabilities::compress {1 << pos::compress}
 
constexpr value_type classic_protocol::capabilities::odbc {1 << pos::odbc}
 
constexpr value_type classic_protocol::capabilities::local_files {1 << pos::local_files}
 
constexpr value_type classic_protocol::capabilities::ignore_space {1 << pos::ignore_space}
 
constexpr value_type classic_protocol::capabilities::protocol_41 {1 << pos::protocol_41}
 
constexpr value_type classic_protocol::capabilities::interactive {1 << pos::interactive}
 
constexpr value_type classic_protocol::capabilities::ssl {1 << pos::ssl}
 
constexpr value_type classic_protocol::capabilities::transactions {1 << pos::transactions}
 
constexpr value_type classic_protocol::capabilities::secure_connection {1 << pos::secure_connection}
 
constexpr value_type classic_protocol::capabilities::multi_statements {1 << pos::multi_statements}
 
constexpr value_type classic_protocol::capabilities::multi_results {1 << pos::multi_results}
 
constexpr value_type classic_protocol::capabilities::ps_multi_results {1 << pos::ps_multi_results}
 
constexpr value_type classic_protocol::capabilities::plugin_auth {1 << pos::plugin_auth}
 
constexpr value_type classic_protocol::capabilities::connect_attributes {1 << pos::connect_attributes}
 
constexpr value_type classic_protocol::capabilities::client_auth_method_data_varint
 
constexpr value_type classic_protocol::capabilities::expired_passwords {1 << pos::expired_passwords}
 
constexpr value_type classic_protocol::capabilities::session_track {1 << pos::session_track}
 
constexpr value_type classic_protocol::capabilities::text_result_with_session_tracking
 
constexpr value_type classic_protocol::capabilities::compress_zstd {1 << pos::compress_zstd}
 
constexpr value_type classic_protocol::capabilities::optional_resultset_metadata
 
constexpr value_type classic_protocol::capabilities::query_attributes {1 << pos::query_attributes}
 
constexpr value_type classic_protocol::status::pos::in_transaction {0}
 
constexpr value_type classic_protocol::status::pos::autocommit {1}
 
constexpr value_type classic_protocol::status::pos::more_results_exist {3}
 
constexpr value_type classic_protocol::status::pos::no_good_index_used {4}
 
constexpr value_type classic_protocol::status::pos::no_index_used {5}
 
constexpr value_type classic_protocol::status::pos::cursor_exists {6}
 
constexpr value_type classic_protocol::status::pos::last_row_sent {7}
 
constexpr value_type classic_protocol::status::pos::schema_dropped {8}
 
constexpr value_type classic_protocol::status::pos::no_backslash_escapes {9}
 
constexpr value_type classic_protocol::status::pos::metadata_changed {10}
 
constexpr value_type classic_protocol::status::pos::query_was_slow {11}
 
constexpr value_type classic_protocol::status::pos::ps_out_params {12}
 
constexpr value_type classic_protocol::status::pos::in_transaction_readonly {13}
 
constexpr value_type classic_protocol::status::pos::session_state_changed {14}
 
constexpr value_type classic_protocol::status::in_transaction {1 << pos::in_transaction}
 
constexpr value_type classic_protocol::status::autocommit {1 << pos::autocommit}
 
constexpr value_type classic_protocol::status::more_results_exist {1 << pos::more_results_exist}
 
constexpr value_type classic_protocol::status::no_good_index_used {1 << pos::no_good_index_used}
 
constexpr value_type classic_protocol::status::no_index_used {1 << pos::no_index_used}
 
constexpr value_type classic_protocol::status::cursor_exists {1 << pos::cursor_exists}
 
constexpr value_type classic_protocol::status::last_row_sent {1 << pos::last_row_sent}
 
constexpr value_type classic_protocol::status::schema_dropped {1 << pos::schema_dropped}
 
constexpr value_type classic_protocol::status::no_backslash_escapes {1 << pos::no_backslash_escapes}
 
constexpr value_type classic_protocol::status::metadata_changed {1 << pos::metadata_changed}
 
constexpr value_type classic_protocol::status::query_was_slow {1 << pos::query_was_slow}
 
constexpr value_type classic_protocol::status::ps_out_params {1 << pos::ps_out_params}
 
constexpr value_type classic_protocol::status::in_transaction_readonly {1 << pos::in_transaction_readonly}
 
constexpr value_type classic_protocol::status::session_state_changed {1 << pos::session_state_changed}
 
constexpr value_type classic_protocol::cursor::pos::read_only {0}
 
constexpr value_type classic_protocol::cursor::pos::for_update {1}
 
constexpr value_type classic_protocol::cursor::pos::scrollable {2}
 
constexpr value_type classic_protocol::cursor::pos::param_count_available {3}
 
constexpr value_type classic_protocol::cursor::pos::_bitset_size {param_count_available + 1}
 
constexpr value_type classic_protocol::cursor::no_cursor {0}
 
constexpr value_type classic_protocol::cursor::read_only {1 << pos::read_only}
 
constexpr value_type classic_protocol::cursor::for_update {1 << pos::for_update}
 
constexpr value_type classic_protocol::cursor::scrollable {1 << pos::scrollable}
 
constexpr value_type classic_protocol::cursor::param_count_available {1 << pos::param_count_available}
 
constexpr value_type classic_protocol::field_type::Decimal {0x00}
 
constexpr value_type classic_protocol::field_type::Tiny {0x01}
 
constexpr value_type classic_protocol::field_type::Short {0x02}
 
constexpr value_type classic_protocol::field_type::Long {0x03}
 
constexpr value_type classic_protocol::field_type::Float {0x04}
 
constexpr value_type classic_protocol::field_type::Double {0x05}
 
constexpr value_type classic_protocol::field_type::Null {0x06}
 
constexpr value_type classic_protocol::field_type::Timestamp {0x07}
 
constexpr value_type classic_protocol::field_type::LongLong {0x08}
 
constexpr value_type classic_protocol::field_type::Int24 {0x09}
 
constexpr value_type classic_protocol::field_type::Date {0x0a}
 
constexpr value_type classic_protocol::field_type::Time {0x0b}
 
constexpr value_type classic_protocol::field_type::DateTime {0x0c}
 
constexpr value_type classic_protocol::field_type::Year {0x0d}
 
constexpr value_type classic_protocol::field_type::Varchar {0x0f}
 
constexpr value_type classic_protocol::field_type::Bit {0x10}
 
constexpr value_type classic_protocol::field_type::Timestamp2 {0x11}
 
constexpr value_type classic_protocol::field_type::Json {0xf5}
 
constexpr value_type classic_protocol::field_type::NewDecimal {0xf6}
 
constexpr value_type classic_protocol::field_type::Enum {0xf7}
 
constexpr value_type classic_protocol::field_type::Set {0xf8}
 
constexpr value_type classic_protocol::field_type::TinyBlob {0xf9}
 
constexpr value_type classic_protocol::field_type::MediumBlob {0xfa}
 
constexpr value_type classic_protocol::field_type::LongBlob {0xfb}
 
constexpr value_type classic_protocol::field_type::Blob {0xfc}
 
constexpr value_type classic_protocol::field_type::VarString {0xfd}
 
constexpr value_type classic_protocol::field_type::String {0xfe}
 
constexpr value_type classic_protocol::field_type::Geometry {0xff}
 
constexpr value_type classic_protocol::column_def::pos::not_null {0}
 
constexpr value_type classic_protocol::column_def::pos::primary_key {1}
 
constexpr value_type classic_protocol::column_def::pos::unique_key {2}
 
constexpr value_type classic_protocol::column_def::pos::multiple_key {3}
 
constexpr value_type classic_protocol::column_def::pos::blob {4}
 
constexpr value_type classic_protocol::column_def::pos::is_unsigned {5}
 
constexpr value_type classic_protocol::column_def::pos::zerofill {6}
 
constexpr value_type classic_protocol::column_def::pos::binary {7}
 
constexpr value_type classic_protocol::column_def::pos::is_enum {8}
 
constexpr value_type classic_protocol::column_def::pos::auto_increment {9}
 
constexpr value_type classic_protocol::column_def::pos::timestamp {10}
 
constexpr value_type classic_protocol::column_def::pos::set {11}
 
constexpr value_type classic_protocol::column_def::pos::no_default_value {12}
 
constexpr value_type classic_protocol::column_def::pos::on_update {13}
 
constexpr value_type classic_protocol::column_def::pos::numeric {14}
 
constexpr value_type classic_protocol::column_def::pos::_bitset_size {numeric + 1}
 
constexpr value_type classic_protocol::column_def::not_null {1 << pos::not_null}
 
constexpr value_type classic_protocol::column_def::primary_key {1 << pos::primary_key}
 
constexpr value_type classic_protocol::column_def::unique_key {1 << pos::unique_key}
 
constexpr value_type classic_protocol::column_def::multiple_key {1 << pos::multiple_key}
 
constexpr value_type classic_protocol::column_def::blob {1 << pos::blob}
 
constexpr value_type classic_protocol::column_def::is_unsigned {1 << pos::is_unsigned}
 
constexpr value_type classic_protocol::column_def::zerofill {1 << pos::zerofill}
 
constexpr value_type classic_protocol::column_def::binary {1 << pos::binary}
 
constexpr value_type classic_protocol::column_def::is_enum {1 << pos::is_enum}
 
constexpr value_type classic_protocol::column_def::auto_increment {1 << pos::auto_increment}
 
constexpr value_type classic_protocol::column_def::timestamp {1 << pos::timestamp}
 
constexpr value_type classic_protocol::column_def::set {1 << pos::set}
 
constexpr value_type classic_protocol::column_def::no_default_value {1 << pos::no_default_value}
 
constexpr value_type classic_protocol::column_def::on_update {1 << pos::on_update}
 
constexpr value_type classic_protocol::column_def::numeric {1 << pos::numeric}
 
constexpr value_type classic_protocol::reload_cmds::pos::flush_privileges {0}
 
constexpr value_type classic_protocol::reload_cmds::pos::flush_logs {1}
 
constexpr value_type classic_protocol::reload_cmds::pos::flush_tables {2}
 
constexpr value_type classic_protocol::reload_cmds::pos::flush_hosts {3}
 
constexpr value_type classic_protocol::reload_cmds::pos::flush_status {4}
 
constexpr value_type classic_protocol::reload_cmds::pos::flush_threads {5}
 
constexpr value_type classic_protocol::reload_cmds::pos::reset_slave {6}
 
constexpr value_type classic_protocol::reload_cmds::pos::reset_master {7}
 
constexpr value_type classic_protocol::reload_cmds::pos::_bitset_size {reset_master + 1}
 
constexpr value_type classic_protocol::reload_cmds::flush_privileges {1 << pos::flush_privileges}
 
constexpr value_type classic_protocol::reload_cmds::flush_logs {1 << pos::flush_logs}
 
constexpr value_type classic_protocol::reload_cmds::flush_tables {1 << pos::flush_tables}
 
constexpr value_type classic_protocol::reload_cmds::flush_hosts {1 << pos::flush_hosts}
 
constexpr value_type classic_protocol::reload_cmds::flush_status {1 << pos::flush_status}
 
constexpr value_type classic_protocol::reload_cmds::flush_threads {1 << pos::flush_threads}
 
constexpr value_type classic_protocol::reload_cmds::reset_slave {1 << pos::reset_slave}
 
constexpr value_type classic_protocol::reload_cmds::reset_master {1 << pos::reset_master}
 
constexpr value_type classic_protocol::collation::Latin1SwedishCi {0x08}
 
constexpr value_type classic_protocol::collation::Utf8GeneralCi {0x21}
 
constexpr value_type classic_protocol::collation::Binary {0x3f}