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 DRIZZLE_SERVER_SHOW_H
28
#define DRIZZLE_SERVER_SHOW_H
30
bool mysqld_show_open_tables(Session *session,const char *wild);
31
bool mysqld_show_logs(Session *session);
32
void append_identifier(Session *session, String *packet, const char *name,
34
void mysqld_list_fields(Session *session,TableList *table, const char *wild);
35
int mysqld_dump_create_info(Session *session, TableList *table_list, int fd);
36
bool mysqld_show_create(Session *session, TableList *table_list);
37
bool mysqld_show_create_db(Session *session, char *dbname, HA_CREATE_INFO *create);
39
void mysqld_list_processes(Session *session,const char *user,bool verbose);
40
int mysqld_show_status(Session *session);
41
int mysqld_show_variables(Session *session,const char *wild);
42
bool mysqld_show_storage_engines(Session *session);
43
bool mysqld_show_authors(Session *session);
44
bool mysqld_show_contributors(Session *session);
45
bool mysqld_show_privileges(Session *session);
46
bool mysqld_show_column_types(Session *session);
47
bool mysqld_help (Session *session, const char *text);
48
void calc_sum_of_all_status(STATUS_VAR *to);
50
void append_definer(Session *session, String *buffer, const LEX_STRING *definer_user,
51
const LEX_STRING *definer_host);
53
int add_status_vars(SHOW_VAR *list);
54
void remove_status_vars(SHOW_VAR *list);
55
void init_status_vars();
56
void free_status_vars();
57
void reset_status_vars();
59
#endif /* DRIZZLE_SERVER_SHOW_H */