MySQL 9.0.0
Source Code Documentation
classic_protocol::borrowable::message::client::Query< Borrowed > Class Template Reference

#include <classic_protocol_message.h>

Classes

struct  Param
 

Public Types

using string_type = std::conditional_t< Borrowed, std::string_view, std::string >
 

Public Member Functions

 Query (string_type statement)
 
 Query (string_type statement, std::vector< Param > values)
 construct a Query message with values. More...
 
constexpr string_type statement () const
 
std::vector< Paramvalues () const
 

Private Attributes

string_type statement_
 
std::vector< Paramvalues_
 

Member Typedef Documentation

◆ string_type

template<bool Borrowed>
using classic_protocol::borrowable::message::client::Query< Borrowed >::string_type = std::conditional_t<Borrowed, std::string_view, std::string>

Constructor & Destructor Documentation

◆ Query() [1/2]

template<bool Borrowed>
classic_protocol::borrowable::message::client::Query< Borrowed >::Query ( string_type  statement)
inline

◆ Query() [2/2]

template<bool Borrowed>
classic_protocol::borrowable::message::client::Query< Borrowed >::Query ( string_type  statement,
std::vector< Param values 
)
inline

construct a Query message with values.

Parameters
statementstatement to query
valuesvalues for statement

Member Function Documentation

◆ statement()

template<bool Borrowed>
constexpr string_type classic_protocol::borrowable::message::client::Query< Borrowed >::statement ( ) const
inlineconstexpr

◆ values()

template<bool Borrowed>
std::vector< Param > classic_protocol::borrowable::message::client::Query< Borrowed >::values ( ) const
inline

Member Data Documentation

◆ statement_

template<bool Borrowed>
string_type classic_protocol::borrowable::message::client::Query< Borrowed >::statement_
private

◆ values_

template<bool Borrowed>
std::vector<Param> classic_protocol::borrowable::message::client::Query< Borrowed >::values_
private

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