MySQL  8.0.17
Source Code Documentation
sql_initialize.h
Go to the documentation of this file.
1 /* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
2 
3  This program is free software; you can redistribute it and/or modify
4  it under the terms of the GNU General Public License, version 2.0,
5  as published by the Free Software Foundation.
6 
7  This program is also distributed with certain software (including
8  but not limited to OpenSSL) that is licensed under separate terms,
9  as designated in a particular file or component or in included license
10  documentation. The authors of MySQL hereby grant you an additional
11  permission to link the program and your derivative works with the
12  separately licensed software that they have included with MySQL.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License, version 2.0, for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22 
23 #ifndef SQL_INITIALIZE_H
24 #define SQL_INITIALIZE_H 1
25 
26 #include <string>
27 
28 #include "sql/bootstrap_impl.h"
29 
31  public:
34  void begin(void);
35  int next(std::string &query, int *read_error, int *iterator_type);
36  void end(void);
37 
38  private:
39  bool is_active;
40 };
41 
42 extern bool opt_initialize_insecure;
43 bool initialize_create_data_directory(const char *data_home);
45 
46 #endif /* SQL_INITIALIZE_H */
abstract interface to reading bootstrap commands
Definition: bootstrap_impl.h:32
static char * query
Definition: myisam_ftdump.cc:44
Compiled_in_command_iterator()
Definition: sql_initialize.h:32
Definition: sql_initialize.h:30
bool opt_initialize_insecure
Definition: sql_initialize.cc:63
bool mysql_initialize_directory_freshly_created
True if –initialize has actually created the directory.
Definition: sql_initialize.cc:65
bool initialize_create_data_directory(const char *data_home)
Create the data directory.
Definition: sql_initialize.cc:243
bool is_active
Definition: sql_initialize.h:39
int next(std::string &query, int *read_error, int *iterator_type)
Get the next query string.
Definition: sql_initialize.cc:179
void end(void)
end processing the iterator
Definition: sql_initialize.cc:217
virtual ~Compiled_in_command_iterator()
Definition: sql_initialize.h:33
void begin(void)
start processing the iterator
Definition: sql_initialize.cc:144
#define false
Definition: config_static.h:43