mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / sql / sql_show.h
blobb5d6c0af7d379da1f57f975667c6d1857c0d2b75
1 /*
2 Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; version 2 of the License.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
13 You should have received a copy of the GNU General Public License
14 along with this program; if not, write to the Free Software
15 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 #ifndef SQL_SHOW_H
19 #define SQL_SHOW_H
21 /* Forward declarations */
22 class String;
23 class THD;
24 struct st_ha_create_information;
25 typedef st_ha_create_information HA_CREATE_INFO;
26 struct TABLE_LIST;
28 enum find_files_result {
29 FIND_FILES_OK,
30 FIND_FILES_OOM,
31 FIND_FILES_DIR
34 find_files_result find_files(THD *thd, List<LEX_STRING> *files, const char *db,
35 const char *path, const char *wild, bool dir);
37 int store_create_info(THD *thd, TABLE_LIST *table_list, String *packet,
38 HA_CREATE_INFO *create_info_arg, bool show_database);
39 int view_store_create_info(THD *thd, TABLE_LIST *table, String *buff);
41 int copy_event_to_schema_table(THD *thd, TABLE *sch_table, TABLE *event_table);
42 int get_quote_char_for_identifier(THD *thd, const char *name, uint length);
44 #endif /* SQL_SHOW_H */