MySQL 8.0.40
Source Code Documentation
server_mock::DuktapeStatementReader::Pimpl Struct Reference

Public Types

enum class  HandshakeState {
  INIT , GREETED , AUTH_SWITCHED , AUTH_FASTED ,
  DONE
}
 

Public Member Functions

 Pimpl (std::unique_ptr< DukHeap > heap)
 
std::string get_object_string_value (duk_idx_t idx, const std::string &field, const std::string &default_val="", bool is_required=false)
 
template<class INT_TYPE >
std::enable_if< std::is_unsigned< INT_TYPE >::value, INT_TYPE >::type get_object_integer_value (duk_idx_t idx, const std::string &field, const INT_TYPE default_val=0, bool is_required=false)
 
OkResponse get_ok (duk_idx_t idx)
 
ErrorResponse get_error (duk_idx_t idx)
 
ResultsetResponse get_result (duk_idx_t idx)
 

Public Attributes

enum server_mock::DuktapeStatementReader::Pimpl::HandshakeState INIT
 
classic_protocol::capabilities::value_type server_capabilities_
 
bool first_stmt_ {true}
 
std::string nonce_
 
std::unique_ptr< DukHeapheap_
 
duk_context * ctx {nullptr}
 

Member Enumeration Documentation

◆ HandshakeState

Enumerator
INIT 
GREETED 
AUTH_SWITCHED 
AUTH_FASTED 
DONE 

Constructor & Destructor Documentation

◆ Pimpl()

server_mock::DuktapeStatementReader::Pimpl::Pimpl ( std::unique_ptr< DukHeap heap)
inline

Member Function Documentation

◆ get_error()

ErrorResponse server_mock::DuktapeStatementReader::Pimpl::get_error ( duk_idx_t  idx)
inline

◆ get_object_integer_value()

template<class INT_TYPE >
std::enable_if< std::is_unsigned< INT_TYPE >::value, INT_TYPE >::type server_mock::DuktapeStatementReader::Pimpl::get_object_integer_value ( duk_idx_t  idx,
const std::string &  field,
const INT_TYPE  default_val = 0,
bool  is_required = false 
)
inline

◆ get_object_string_value()

std::string server_mock::DuktapeStatementReader::Pimpl::get_object_string_value ( duk_idx_t  idx,
const std::string &  field,
const std::string &  default_val = "",
bool  is_required = false 
)
inline

◆ get_ok()

OkResponse server_mock::DuktapeStatementReader::Pimpl::get_ok ( duk_idx_t  idx)
inline

◆ get_result()

ResultsetResponse server_mock::DuktapeStatementReader::Pimpl::get_result ( duk_idx_t  idx)
inline

Member Data Documentation

◆ ctx

duk_context* server_mock::DuktapeStatementReader::Pimpl::ctx {nullptr}

◆ first_stmt_

bool server_mock::DuktapeStatementReader::Pimpl::first_stmt_ {true}

◆ heap_

std::unique_ptr<DukHeap> server_mock::DuktapeStatementReader::Pimpl::heap_

◆ INIT

enum server_mock::DuktapeStatementReader::Pimpl::HandshakeState server_mock::DuktapeStatementReader::Pimpl::INIT

◆ nonce_

std::string server_mock::DuktapeStatementReader::Pimpl::nonce_

◆ server_capabilities_

classic_protocol::capabilities::value_type server_mock::DuktapeStatementReader::Pimpl::server_capabilities_

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