1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
* Copyright (C) 2008 Sun Microsystems
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 2 of the License.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23
* Contains function declarations that deal with the SHOW commands. These
24
* will eventually go away, but for now we split these definitions out into
25
* their own header file for easier maintenance
27
#ifndef DRIZZLED_SHOW_H
28
#define DRIZZLED_SHOW_H
32
#include "drizzled/sql_list.h"
33
#include "drizzled/lex_string.h"
34
#include "drizzled/sql_parse.h"
35
#include "drizzled/plugin.h"
40
/* Forward declarations */
44
struct st_ha_create_information;
45
typedef st_ha_create_information HA_CREATE_INFO;
49
typedef class Item COND;
51
extern struct system_status_var global_status_var;
53
drizzle_show_var *getFrontOfStatusVars();
54
drizzle_show_var *getCommandStatusVars();
56
int store_create_info(TableList *table_list, String *packet, bool is_if_not_exists);
58
int wild_case_compare(const CHARSET_INFO * const cs,
59
const char *str,const char *wildstr);
61
bool drizzled_show_create(Session *session, TableList *table_list, bool is_if_not_exists);
62
bool mysqld_show_create_db(Session &session, SchemaIdentifier &, bool if_not_exists);
64
bool mysqld_show_column_types(Session *session);
65
void calc_sum_of_all_status(struct system_status_var *to);
67
int add_status_vars(drizzle_show_var *list);
68
int add_com_status_vars(drizzle_show_var *list);
69
void remove_status_vars(drizzle_show_var *list);
70
void init_status_vars();
71
void free_status_vars();
72
void reset_status_vars();
74
int get_quote_char_for_identifier();
76
} /* namespace drizzled */
78
#endif /* DRIZZLED_SHOW_H */