MySQL 9.7.0
Source Code Documentation
Field_view_definition< Typecode_tp, typecode_end_tp > Struct Template Reference

Description of the mapping between a column and a field typecode. More...

#include <row_proxy.h>

Public Types

using Typecode_t = Typecode_tp
 

Public Attributes

Typecode_t m_field_typecode
 Enum value for the mysql::abi_helpers::Field object holding the value. More...
 
Column_type m_type
 Type of the field. More...
 
Typecode_t m_null_typecode {typecode_end_tp}
 Enum value for a mysql::abi_helpers::Field object that holds a bool indicating if the value is NULL. More...
 

Static Public Attributes

static constexpr Typecode_t typecode_end = typecode_end_tp
 

Detailed Description

template<class Typecode_tp, Typecode_tp typecode_end_tp>
requires requires
struct Field_view_definition< Typecode_tp, typecode_end_tp >

Description of the mapping between a column and a field typecode.

Template Parameters
Typecode_tpThe enum type used for type codes.
typecode_end_tpEnum value whose value is greater than the largest enum value that represents a field in a packet.

Member Typedef Documentation

◆ Typecode_t

template<class Typecode_tp , Typecode_tp typecode_end_tp>
using Field_view_definition< Typecode_tp, typecode_end_tp >::Typecode_t = Typecode_tp

Member Data Documentation

◆ m_field_typecode

template<class Typecode_tp , Typecode_tp typecode_end_tp>
Typecode_t Field_view_definition< Typecode_tp, typecode_end_tp >::m_field_typecode

Enum value for the mysql::abi_helpers::Field object holding the value.

◆ m_null_typecode

template<class Typecode_tp , Typecode_tp typecode_end_tp>
Typecode_t Field_view_definition< Typecode_tp, typecode_end_tp >::m_null_typecode {typecode_end_tp}

Enum value for a mysql::abi_helpers::Field object that holds a bool indicating if the value is NULL.

Note
: this is only a remainder of a legacy protocol: new protocols should just omit m_field_typecode from the packet to indicate that the field is NULL, and their Field_view_definitions should leave this field with the default value.

◆ m_type

template<class Typecode_tp , Typecode_tp typecode_end_tp>
Column_type Field_view_definition< Typecode_tp, typecode_end_tp >::m_type

Type of the field.

◆ typecode_end

template<class Typecode_tp , Typecode_tp typecode_end_tp>
constexpr Typecode_t Field_view_definition< Typecode_tp, typecode_end_tp >::typecode_end = typecode_end_tp
staticconstexpr

The documentation for this struct was generated from the following file: