MySQL 8.3.0
Source Code Documentation
server_mock::DuktapeStatementReaderFactory::FailedStatementReader Class Reference

#include <duktape_statement_reader.h>

Inheritance diagram for server_mock::DuktapeStatementReaderFactory::FailedStatementReader:
[legend]

Public Member Functions

 FailedStatementReader (std::string what)
 
void handle_statement (const std::string &, ProtocolBase *) override
 Returns the data about the next statement from the json file. More...
 
std::chrono::microseconds get_default_exec_time () override
 Returns the default execution time in microseconds. More...
 
std::vector< AsyncNoticeget_async_notices () override
 
stdx::expected< handshake_data, ErrorResponsehandshake (bool) override
 
void set_session_ssl_info (const SSL *) override
 
- Public Member Functions inherited from server_mock::StatementReaderBase
 StatementReaderBase ()=default
 
 StatementReaderBase (const StatementReaderBase &)=default
 
 StatementReaderBase (StatementReaderBase &&)=default
 
StatementReaderBaseoperator= (const StatementReaderBase &)=default
 
StatementReaderBaseoperator= (StatementReaderBase &&)=default
 
virtual ~StatementReaderBase ()=default
 

Private Attributes

std::string what_
 

Constructor & Destructor Documentation

◆ FailedStatementReader()

server_mock::DuktapeStatementReaderFactory::FailedStatementReader::FailedStatementReader ( std::string  what)
inline

Member Function Documentation

◆ get_async_notices()

std::vector< AsyncNotice > server_mock::DuktapeStatementReaderFactory::FailedStatementReader::get_async_notices ( )
inlineoverridevirtual

◆ get_default_exec_time()

std::chrono::microseconds server_mock::DuktapeStatementReaderFactory::FailedStatementReader::get_default_exec_time ( )
inlineoverridevirtual

Returns the default execution time in microseconds.

If no default execution time is provided in json file, then 0 microseconds is returned.

Implements server_mock::StatementReaderBase.

◆ handle_statement()

void server_mock::DuktapeStatementReaderFactory::FailedStatementReader::handle_statement ( const std::string &  statement,
ProtocolBase protocol 
)
inlineoverridevirtual

Returns the data about the next statement from the json file.

If there is no more statements it returns empty statement.

Implements server_mock::StatementReaderBase.

◆ handshake()

stdx::expected< handshake_data, ErrorResponse > server_mock::DuktapeStatementReaderFactory::FailedStatementReader::handshake ( bool  )
inlineoverridevirtual

◆ set_session_ssl_info()

void server_mock::DuktapeStatementReaderFactory::FailedStatementReader::set_session_ssl_info ( const SSL *  )
inlineoverridevirtual

Member Data Documentation

◆ what_

std::string server_mock::DuktapeStatementReaderFactory::FailedStatementReader::what_
private

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