24#ifndef BOOTSTRAP_IMPL_H 
   25#define BOOTSTRAP_IMPL_H 1 
   42  virtual bool begin(
void) { 
return false; }
 
   55  virtual void end(
void) {}
 
Abstract interface to reading bootstrap commands.
Definition: bootstrap_impl.h:33
 
virtual void end(void)
End processing the iterator.
Definition: bootstrap_impl.h:55
 
void(* log_function_t)(const char *message)
Definition: bootstrap_impl.h:35
 
virtual int next(std::string &query)=0
Get the next query string.
 
virtual bool begin(void)
start processing the iterator
Definition: bootstrap_impl.h:42
 
Command_iterator()=default
 
~Command_iterator()=default
 
virtual void report_error_details(log_function_t log)=0
 
File bootstrap command reader.
Definition: bootstrap_impl.h:63
 
fgets_fn_t m_fgets_fn
Definition: bootstrap_impl.h:79
 
virtual ~File_command_iterator()
 
int next(std::string &query) override
Get the next query string.
Definition: bootstrap.cc:73
 
File_command_iterator(const char *file_name, MYSQL_FILE *input, fgets_fn_t fgets_fn)
Definition: bootstrap_impl.h:65
 
void report_error_details(log_function_t log) override
Definition: bootstrap.cc:86
 
bootstrap_parser_state m_parser_state
Definition: bootstrap_impl.h:77
 
MYSQL_FILE * m_input
Definition: bootstrap_impl.h:78
 
static char * query
Definition: myisam_ftdump.cc:47
 
Definition: bootstrap.cc:71
 
std::string file_name(Log_file_id file_id)
Provides name of the log file with the given file id, e.g.
Definition: log0pre_8_0_30.cc:94
 
char *(* fgets_fn_t)(char *, size_t, MYSQL_FILE *, int *error)
Definition: sql_bootstrap.h:59
 
An instrumented FILE structure.
Definition: mysql_file.h:484
 
Definition: sql_bootstrap.h:90
 
void init(const char *filename)
Definition: sql_bootstrap.cc:39