MySQL  8.0.27
Source Code Documentation
bootstrap::File_command_iterator Class Reference

File bootstrap command reader. More...

#include <bootstrap_impl.h>

Inheritance diagram for bootstrap::File_command_iterator:
bootstrap::Command_iterator

Public Member Functions

 File_command_iterator (const char *file_name, MYSQL_FILE *input, fgets_fn_t fgets_fn)
 
virtual ~File_command_iterator ()
 
int next (std::string &query) override
 Get the next query string. More...
 
void report_error_details (log_function_t log) override
 
- Public Member Functions inherited from bootstrap::Command_iterator
virtual bool begin (void)
 start processing the iterator More...
 
virtual void end (void)
 End processing the iterator. More...
 

Protected Attributes

bootstrap_parser_state m_parser_state
 
MYSQL_FILEm_input
 
fgets_fn_t m_fgets_fn
 

Additional Inherited Members

- Public Types inherited from bootstrap::Command_iterator
typedef void(* log_function_t) (const char *message)
 
- Protected Member Functions inherited from bootstrap::Command_iterator
 Command_iterator ()=default
 
 ~Command_iterator ()=default
 

Detailed Description

File bootstrap command reader.

Constructor & Destructor Documentation

◆ File_command_iterator()

bootstrap::File_command_iterator::File_command_iterator ( const char *  file_name,
MYSQL_FILE input,
fgets_fn_t  fgets_fn 
)
inline

◆ ~File_command_iterator()

bootstrap::File_command_iterator::~File_command_iterator ( )
virtualdefault

Member Function Documentation

◆ next()

int bootstrap::File_command_iterator::next ( std::string &  query)
overridevirtual

Get the next query string.

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

Implements bootstrap::Command_iterator.

◆ report_error_details()

void bootstrap::File_command_iterator::report_error_details ( log_function_t  log)
overridevirtual

Member Data Documentation

◆ m_fgets_fn

fgets_fn_t bootstrap::File_command_iterator::m_fgets_fn
protected

◆ m_input

MYSQL_FILE* bootstrap::File_command_iterator::m_input
protected

◆ m_parser_state

bootstrap_parser_state bootstrap::File_command_iterator::m_parser_state
protected

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