~ubuntu-branches/ubuntu/trusty/mysql-5.6/trusty

« back to all changes in this revision

Viewing changes to sql/datadict.h

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-12 11:54:27 UTC
  • Revision ID: package-import@ubuntu.com-20140212115427-oq6tfsqxl1wuwehi
Tags: upstream-5.6.15
ImportĀ upstreamĀ versionĀ 5.6.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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