MySQL 9.1.0
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< handshake_data, ErrorResponsehandshake (bool is_greeting)=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 ( bool  is_greeting)
pure virtual

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ 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: