27
27
#ifndef DRIZZLE_SERVER_SHOW_H
28
28
#define DRIZZLE_SERVER_SHOW_H
30
#include <drizzled/global.h>
33
#include <drizzled/sql_list.h>
35
/* Forward declarations */
38
typedef struct st_select_lex SELECT_LEX;
40
struct st_ha_create_information;
41
typedef st_ha_create_information HA_CREATE_INFO;
43
class ST_SCHEMA_TABLE;
45
enum find_files_result {
51
find_files_result find_files(Session *session, List<LEX_STRING> *files, const char *db,
52
const char *path, const char *wild, bool dir);
55
int store_create_info(Session *session, TableList *table_list, String *packet,
56
HA_CREATE_INFO *create_info_arg);
57
bool store_db_create_info(Session *session, const char *dbname, String *buffer,
58
HA_CREATE_INFO *create_info);
59
bool schema_table_store_record(Session *session, Table *table);
61
int get_quote_char_for_identifier(Session *session, const char *name,
64
ST_SCHEMA_TABLE *find_schema_table(Session *session, const char* table_name);
65
ST_SCHEMA_TABLE *get_schema_table(enum enum_schema_tables schema_table_idx);
66
int make_schema_select(Session *session, SELECT_LEX *sel,
67
enum enum_schema_tables schema_table_idx);
68
int mysql_schema_table(Session *session, LEX *lex, TableList *table_list);
69
bool get_schema_tables_result(JOIN *join,
70
enum enum_schema_table_state executed_place);
71
enum enum_schema_tables get_schema_table_idx(ST_SCHEMA_TABLE *schema_table);
30
73
bool mysqld_show_open_tables(Session *session,const char *wild);
31
74
bool mysqld_show_logs(Session *session);
32
75
void append_identifier(Session *session, String *packet, const char *name,
36
79
bool mysqld_show_create(Session *session, TableList *table_list);
37
80
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
82
int mysqld_show_status(Session *session);
41
83
int mysqld_show_variables(Session *session,const char *wild);
42
84
bool mysqld_show_storage_engines(Session *session);
44
86
bool mysqld_show_contributors(Session *session);
45
87
bool mysqld_show_privileges(Session *session);
46
88
bool mysqld_show_column_types(Session *session);
89
void mysqld_list_processes(Session *session,const char *user, bool verbose);
47
90
bool mysqld_help (Session *session, const char *text);
48
91
void calc_sum_of_all_status(STATUS_VAR *to);