MySQL 8.0.40
Source Code Documentation
bootstrap::Command_iterator Class Referenceabstract

Abstract interface to reading bootstrap commands. More...

#include <bootstrap_impl.h>

Inheritance diagram for bootstrap::Command_iterator:
[legend]

Public Types

typedef void(* log_function_t) (const char *message)
 

Public Member Functions

virtual bool begin (void)
 start processing the iterator More...
 
virtual int next (std::string &query)=0
 Get the next query string. More...
 
virtual void report_error_details (log_function_t log)=0
 
virtual void end (void)
 End processing the iterator. More...
 

Protected Member Functions

 Command_iterator ()=default
 
 ~Command_iterator ()=default
 

Detailed Description

Abstract interface to reading bootstrap commands.

Member Typedef Documentation

◆ log_function_t

typedef void(* bootstrap::Command_iterator::log_function_t) (const char *message)

Constructor & Destructor Documentation

◆ Command_iterator()

bootstrap::Command_iterator::Command_iterator ( )
protecteddefault

◆ ~Command_iterator()

bootstrap::Command_iterator::~Command_iterator ( )
protecteddefault

Member Function Documentation

◆ begin()

virtual bool bootstrap::Command_iterator::begin ( void  )
inlinevirtual

start processing the iterator

Return values
falseSuccess
truefailure

Reimplemented in Compiled_in_command_iterator.

◆ end()

virtual void bootstrap::Command_iterator::end ( void  )
inlinevirtual

End processing the iterator.

Reimplemented in Compiled_in_command_iterator.

◆ next()

virtual int bootstrap::Command_iterator::next ( std::string &  query)
pure virtual

Get the next query string.

Parameters
[out]queryreturn the query
Returns
one of the READ_BOOTSTRAP

Implemented in bootstrap::File_command_iterator, and Compiled_in_command_iterator.

◆ report_error_details()

virtual void bootstrap::Command_iterator::report_error_details ( log_function_t  log)
pure virtual

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