My Project
datadict.h
00001 #ifndef DATADICT_INCLUDED
00002 #define DATADICT_INCLUDED
00003 /* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
00004 
00005    This program is free software; you can redistribute it and/or modify
00006    it under the terms of the GNU General Public License as published by
00007    the Free Software Foundation; version 2 of the License.
00008 
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012    GNU General Public License for more details.
00013 
00014    You should have received a copy of the GNU General Public License
00015    along with this program; if not, write to the Free Software
00016    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA */
00017 
00018 #include "handler.h"
00019 
00020 /*
00021   Data dictionary API.
00022 */
00023 
00024 enum frm_type_enum
00025 {
00026   FRMTYPE_ERROR= 0,
00027   FRMTYPE_TABLE,
00028   FRMTYPE_VIEW
00029 };
00030 
00031 
00032 frm_type_enum dd_frm_type(THD *thd, char *path, enum legacy_db_type *dbt);
00033 
00034 bool dd_frm_storage_engine(THD *thd, const char *db, const char *table_name,
00035                            handlerton **table_type);
00036 bool dd_check_storage_engine_flag(THD *thd,
00037                                   const char *db, const char *table_name,
00038                                   uint32 flag,
00039                                   bool *yes_no);
00040 bool dd_recreate_table(THD *thd, const char *db, const char *table_name);
00041 
00042 #endif // DATADICT_INCLUDED
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines