MySQL 8.3.0
Source Code Documentation
Value Class Reference

a nullable SQL value. More...

#include <sql_value.h>

Public Types

using value_type = std::optional< std::string >

Public Member Functions

 Value (value_type v)
const value_typevalue () const &
std::string to_string () const
 "NULL" or the quoted string. More...

Private Attributes

value_type value_

Detailed Description

a nullable SQL value.

For now, supports NULL and strings.

Note: In the future, may switch to std::variant<> or similar to cover more types if needed.

Member Typedef Documentation

◆ value_type

using Value::value_type = std::optional<std::string>

Constructor & Destructor Documentation

◆ Value()

Value::Value ( value_type  v)

Member Function Documentation

◆ to_string()

std::string Value::to_string ( ) const

"NULL" or the quoted string.

◆ value()

const value_type & Value::value ( ) const &

Member Data Documentation

◆ value_

value_type Value::value_

The documentation for this class was generated from the following files: