MySQL 8.0.39
Source Code Documentation
server_mock::StatementReaderBase Class Referenceabstract

#include <statement_reader.h>

Inheritance diagram for server_mock::StatementReaderBase:
[legend]

Classes

struct  handshake_data
 

Public Member Functions

 StatementReaderBase ()=default
 
 StatementReaderBase (const StatementReaderBase &)=default
 
 StatementReaderBase (StatementReaderBase &&)=default
 
StatementReaderBaseoperator= (const StatementReaderBase &)=default
 
StatementReaderBaseoperator= (StatementReaderBase &&)=default
 
virtual ~StatementReaderBase ()=default
 
virtual void handle_statement (const std::string &statement, ProtocolBase *protocol)=0
 Returns the data about the next statement from the json file. More...
 
virtual std::chrono::microseconds get_default_exec_time ()=0
 Returns the default execution time in microseconds. More...
 
virtual std::vector< AsyncNoticeget_async_notices ()=0
 
virtual stdx::expected< classic_protocol::message::server::Greeting, std::error_code > server_greeting (bool with_tls)=0
 
virtual stdx::expected< handshake_data, ErrorResponsehandshake ()=0
 
virtual std::chrono::microseconds server_greeting_exec_time ()=0
 
virtual void set_session_ssl_info (const SSL *ssl)=0
 

Constructor & Destructor Documentation

◆ StatementReaderBase() [1/3]

server_mock::StatementReaderBase::StatementReaderBase ( )
default

◆ StatementReaderBase() [2/3]

server_mock::StatementReaderBase::StatementReaderBase ( const StatementReaderBase )
default

◆ StatementReaderBase() [3/3]

server_mock::StatementReaderBase::StatementReaderBase ( StatementReaderBase &&  )
default

◆ ~StatementReaderBase()

virtual server_mock::StatementReaderBase::~StatementReaderBase ( )
virtualdefault

Member Function Documentation

◆ get_async_notices()

virtual std::vector< AsyncNotice > server_mock::StatementReaderBase::get_async_notices ( )
pure virtual

◆ get_default_exec_time()

virtual std::chrono::microseconds server_mock::StatementReaderBase::get_default_exec_time ( )
pure virtual

Returns the default execution time in microseconds.

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

Implemented in server_mock::DuktapeStatementReaderFactory::FailedStatementReader, and server_mock::DuktapeStatementReader.

◆ handle_statement()

virtual void server_mock::StatementReaderBase::handle_statement ( const std::string &  statement,
ProtocolBase protocol 
)
pure virtual

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

If there is no more statements it returns empty statement.

Implemented in server_mock::DuktapeStatementReaderFactory::FailedStatementReader, and server_mock::DuktapeStatementReader.

◆ handshake()

virtual stdx::expected< handshake_data, ErrorResponse > server_mock::StatementReaderBase::handshake ( )
pure virtual

◆ operator=() [1/2]

StatementReaderBase & server_mock::StatementReaderBase::operator= ( const StatementReaderBase )
default

◆ operator=() [2/2]

StatementReaderBase & server_mock::StatementReaderBase::operator= ( StatementReaderBase &&  )
default

◆ server_greeting()

virtual stdx::expected< classic_protocol::message::server::Greeting, std::error_code > server_mock::StatementReaderBase::server_greeting ( bool  with_tls)
pure virtual

◆ server_greeting_exec_time()

virtual std::chrono::microseconds server_mock::StatementReaderBase::server_greeting_exec_time ( )
pure virtual

◆ set_session_ssl_info()

virtual void server_mock::StatementReaderBase::set_session_ssl_info ( const SSL *  ssl)
pure virtual

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