MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
datadict.h
1 #ifndef DATADICT_INCLUDED
2 #define DATADICT_INCLUDED
3 /* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; version 2 of the License.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
17 
18 #include "handler.h"
19 
20 /*
21  Data dictionary API.
22 */
23 
24 enum frm_type_enum
25 {
26  FRMTYPE_ERROR= 0,
27  FRMTYPE_TABLE,
28  FRMTYPE_VIEW
29 };
30 
31 
32 frm_type_enum dd_frm_type(THD *thd, char *path, enum legacy_db_type *dbt);
33 
34 bool dd_frm_storage_engine(THD *thd, const char *db, const char *table_name,
35  handlerton **table_type);
36 bool dd_check_storage_engine_flag(THD *thd,
37  const char *db, const char *table_name,
38  uint32 flag,
39  bool *yes_no);
40 bool dd_recreate_table(THD *thd, const char *db, const char *table_name);
41 
42 #endif // DATADICT_INCLUDED