MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
opt_explain.h
1 /* Copyright (c) 2011, 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 as published by
5  the Free Software Foundation; version 2 of the License.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  GNU General Public License for more details.
11 
12  You should have received a copy of the GNU General Public License
13  along with this program; if not, write to the Free Software Foundation,
14  51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */
15 
16 
17 #ifndef OPT_EXPLAIN_INCLUDED
18 #define OPT_EXPLAIN_INCLUDED
19 
48 #include <my_base.h>
49 
50 class JOIN;
51 class select_result;
52 class select_result_interceptor;
53 class SQL_SELECT;
54 struct TABLE;
55 class THD;
56 
57 
58 extern const char *join_type_str[];
59 
60 bool explain_no_table(THD *thd, JOIN *join, const char *message);
61 bool explain_no_table(THD *thd, const char *message,
62  ha_rows rows= HA_POS_ERROR);
63 bool explain_single_table_modification(THD *thd,
64  TABLE *table,
65  const SQL_SELECT *select,
66  uint key,
67  ha_rows limit,
68  bool need_tmp_table,
69  bool need_sort,
70  bool is_update,
71  bool used_key_is_modified= false);
72 bool explain_query_specification(THD *thd, JOIN *join);
73 bool explain_multi_table_modification(THD *thd,
74  select_result_interceptor *result);
75 bool explain_query_expression(THD *thd, select_result *result);
76 
77 #endif /* OPT_EXPLAIN_INCLUDED */