MySQL 8.4.2
Source Code Documentation
protocol_local_v2.h File Reference
#include <variant>
#include "my_sys.h"
#include "mysqld_error.h"
#include "sql-common/my_decimal.h"
#include "sql/field.h"
#include "sql/protocol.h"
#include "sql/sql_class.h"

Go to the source code of this file.

Classes

struct  decimal
 A structure to store a decimal value together with its precision and number of decimals TODO: HCS-10094 - Do we really need this struct? More...
 
struct  Column_metadata
 The metadata of a Column Need to keep in-sync with Send_field class. More...
 
struct  Warning
 Class representing a warning. More...
 
class  Row< T >
 A row of result or a row of metadata A row is a collection of Column values or Column metadata. More...
 
class  Result_set_capacity
 This class is used to limit the bytes collected in Result_set. More...
 
class  Result_set
 A result set contains the result of a query. More...
 
class  Protocol_local_v2
 This is extention of Protocol_local. More...
 

Typedefs

using value_t = std::variant< std::monostate, int64_t *, uint64_t *, double *, MYSQL_TIME *, char *, decimal * >
 A type to store the value of a Column which can be one of all the types that are supported by the Protocol_local_v2. More...
 

Typedef Documentation

◆ value_t

using value_t = std::variant<std::monostate, int64_t *, uint64_t *, double *, MYSQL_TIME *, char *, decimal *>

A type to store the value of a Column which can be one of all the types that are supported by the Protocol_local_v2.

Variant of pointers is used instead of variant of values as the values are stored and managed by mem_root. The pointers point to these values on mem_root