~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/show.h

Merged Nathan from lp:~nlws/drizzle/fix-string-c-ptr-overrun

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#ifndef DRIZZLE_SERVER_SHOW_H
28
28
#define DRIZZLE_SERVER_SHOW_H
29
29
 
30
 
#include <drizzled/global.h>
31
 
#include <stdint.h>
32
 
 
33
30
#include <drizzled/sql_list.h>
34
31
#include <drizzled/lex_string.h>
35
32
#include <drizzled/sql_parse.h>
37
34
/* Forward declarations */
38
35
class String;
39
36
class JOIN;
40
 
typedef struct st_select_lex SELECT_LEX;
41
37
class Session;
42
38
struct st_ha_create_information;
43
39
typedef st_ha_create_information HA_CREATE_INFO;
44
40
struct TableList;
45
 
class ST_SCHEMA_TABLE;
46
 
class NAMED_LIST;
 
41
struct InfoSchemaTable;
47
42
 
48
43
typedef struct system_status_var STATUS_VAR;
49
44
 
58
53
                             const char *path, const char *wild, bool dir);
59
54
 
60
55
 
61
 
int store_create_info(Session *session, TableList *table_list, String *packet,
62
 
                      HA_CREATE_INFO  *create_info_arg);
63
 
bool store_db_create_info(Session *session, const char *dbname, String *buffer,
64
 
                          HA_CREATE_INFO *create_info);
 
56
int store_create_info(TableList *table_list, String *packet, HA_CREATE_INFO  *create_info_arg);
 
57
bool store_db_create_info(const char *dbname, String *buffer, HA_CREATE_INFO *create_info);
65
58
bool schema_table_store_record(Session *session, Table *table);
66
59
 
67
 
int get_quote_char_for_identifier(Session *session, const char *name,
68
 
                                  uint32_t length);
 
60
int get_quote_char_for_identifier();
69
61
 
70
 
ST_SCHEMA_TABLE *find_schema_table(Session *session, const char* table_name);
71
 
ST_SCHEMA_TABLE *get_schema_table(enum enum_schema_tables schema_table_idx);
72
 
int make_schema_select(Session *session,  SELECT_LEX *sel,
 
62
InfoSchemaTable *find_schema_table(const char* table_name);
 
63
InfoSchemaTable *get_schema_table(enum enum_schema_tables schema_table_idx);
 
64
int make_schema_select(Session *session,  Select_Lex *sel,
73
65
                       enum enum_schema_tables schema_table_idx);
74
66
int mysql_schema_table(Session *session, LEX *lex, TableList *table_list);
75
67
bool get_schema_tables_result(JOIN *join,
76
68
                              enum enum_schema_table_state executed_place);
77
 
enum enum_schema_tables get_schema_table_idx(ST_SCHEMA_TABLE *schema_table);
 
69
enum enum_schema_tables get_schema_table_idx(InfoSchemaTable *schema_table);
78
70
 
79
71
bool mysqld_show_open_tables(Session *session,const char *wild);
80
72
bool mysqld_show_logs(Session *session);
81
 
void append_identifier(Session *session, String *packet, const char *name,
82
 
                       uint32_t length);
83
73
void mysqld_list_fields(Session *session,TableList *table, const char *wild);
84
74
int mysqld_dump_create_info(Session *session, TableList *table_list, int fd);
85
 
bool mysqld_show_create(Session *session, TableList *table_list);
 
75
bool drizzled_show_create(Session *session, TableList *table_list);
86
76
bool mysqld_show_create_db(Session *session, char *dbname, HA_CREATE_INFO *create);
87
77
 
88
78
int mysqld_show_status(Session *session);
89
79
int mysqld_show_variables(Session *session,const char *wild);
90
80
bool mysqld_show_storage_engines(Session *session);
91
 
bool mysqld_show_authors(Session *session);
92
 
bool mysqld_show_contributors(Session *session);
93
 
bool mysqld_show_privileges(Session *session);
94
81
bool mysqld_show_column_types(Session *session);
95
82
void mysqld_list_processes(Session *session,const char *user, bool verbose);
96
 
bool mysqld_help (Session *session, const char *text);
97
83
void calc_sum_of_all_status(STATUS_VAR *to);
98
84
 
99
 
void append_definer(Session *session, String *buffer, const LEX_STRING *definer_user,
100
 
                    const LEX_STRING *definer_host);
101
 
 
102
85
int add_status_vars(SHOW_VAR *list);
103
86
void remove_status_vars(SHOW_VAR *list);
104
87
void init_status_vars();
105
88
void free_status_vars();
106
89
void reset_status_vars();
 
90
void add_infoschema_table(InfoSchemaTable *schema_table);
 
91
void remove_infoschema_table(InfoSchemaTable *table);
107
92
 
108
93
#endif /* DRIZZLE_SERVER_SHOW_H */