~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/show.h

  • Committer: Stewart Smith
  • Date: 2008-07-13 06:56:15 UTC
  • mto: (210.1.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 211.
  • Revision ID: stewart@flamingspork.com-20080713065615-vzok75kgnnviokl9
Move MD5() into a UDF

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems
5
 
 *
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.
9
 
 *
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.
14
 
 *
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
18
 
 */
19
 
 
20
 
/**
21
 
 * @file
22
 
 *
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
26
 
 */
27
 
#ifndef DRIZZLED_SHOW_H
28
 
#define DRIZZLED_SHOW_H
29
 
 
30
 
#include <vector>
31
 
 
32
 
#include "drizzled/sql_list.h"
33
 
#include "drizzled/lex_string.h"
34
 
#include "drizzled/sql_parse.h"
35
 
#include "drizzled/plugin.h"
36
 
 
37
 
namespace drizzled
38
 
{
39
 
 
40
 
/* Forward declarations */
41
 
class String;
42
 
class JOIN;
43
 
class Session;
44
 
struct st_ha_create_information;
45
 
typedef st_ha_create_information HA_CREATE_INFO;
46
 
struct TableList;
47
 
 
48
 
class Table;
49
 
typedef class Item COND;
50
 
 
51
 
extern struct system_status_var global_status_var;
52
 
 
53
 
drizzle_show_var *getFrontOfStatusVars();
54
 
drizzle_show_var *getCommandStatusVars();
55
 
 
56
 
int store_create_info(TableList *table_list, String *packet, bool is_if_not_exists);
57
 
 
58
 
int wild_case_compare(const CHARSET_INFO * const cs, 
59
 
                      const char *str,const char *wildstr);
60
 
 
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);
63
 
 
64
 
bool mysqld_show_column_types(Session *session);
65
 
void calc_sum_of_all_status(struct system_status_var *to);
66
 
 
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();
73
 
 
74
 
int get_quote_char_for_identifier();
75
 
 
76
 
} /* namespace drizzled */
77
 
 
78
 
#endif /* DRIZZLED_SHOW_H */