28
28
#include "drizzled/show.h"
30
30
#include "helper_methods.h"
31
#include "character_set.h"
32
#include "collation.h"
33
#include "collation_char_set.h"
34
31
#include "columns.h"
35
32
#include "key_column_usage.h"
37
#include "open_tables.h"
39
#include "processlist.h"
40
33
#include "referential_constraints.h"
42
34
#include "table_constraints.h"
44
#include "table_names.h"
45
35
#include "statistics.h"
46
36
#include "status.h"
47
37
#include "variables.h"
60
50
static int infoSchemaInit(drizzled::plugin::Registry& registry)
62
registry.add(CharacterSetIS::getTable());
63
registry.add(CollationIS::getTable());
64
registry.add(CollationCharSetIS::getTable());
65
52
registry.add(ColumnsIS::getTable());
66
registry.add(KeyColumnUsageIS::getTable());
67
53
registry.add(GlobalStatusIS::getTable());
54
registry.add(SessionVariablesIS::getTable());
68
55
registry.add(GlobalVariablesIS::getTable());
69
registry.add(OpenTablesIS::getTable());
70
registry.add(ModulesIS::getTable());
71
registry.add(PluginsIS::getTable());
72
registry.add(ProcessListIS::getTable());
56
registry.add(SessionStatusIS::getTable());
73
57
registry.add(ReferentialConstraintsIS::getTable());
74
registry.add(SchemataIS::getTable());
75
registry.add(SessionStatusIS::getTable());
76
registry.add(SessionVariablesIS::getTable());
77
registry.add(StatisticsIS::getTable());
58
registry.add(TableConstraintsIS::getTable());
78
59
registry.add(StatusIS::getTable());
79
registry.add(TableConstraintsIS::getTable());
80
registry.add(TablesIS::getTable());
81
registry.add(TableNamesIS::getTable());
60
registry.add(KeyColumnUsageIS::getTable());
82
61
registry.add(VariablesIS::getTable());
62
registry.add(StatisticsIS::getTable());
93
75
static int infoSchemaDone(drizzled::plugin::Registry& registry)
95
registry.remove(CharacterSetIS::getTable());
96
CharacterSetIS::cleanup();
98
registry.remove(CollationIS::getTable());
99
CollationIS::cleanup();
101
registry.remove(CollationCharSetIS::getTable());
102
CollationCharSetIS::cleanup();
104
77
registry.remove(ColumnsIS::getTable());
105
78
ColumnsIS::cleanup();
113
86
registry.remove(GlobalVariablesIS::getTable());
114
87
GlobalVariablesIS::cleanup();
116
registry.remove(OpenTablesIS::getTable());
117
OpenTablesIS::cleanup();
119
registry.remove(ModulesIS::getTable());
120
ModulesIS::cleanup();
122
registry.remove(PluginsIS::getTable());
123
PluginsIS::cleanup();
125
registry.remove(ProcessListIS::getTable());
126
ProcessListIS::cleanup();
128
89
registry.remove(ReferentialConstraintsIS::getTable());
129
90
ReferentialConstraintsIS::cleanup();
131
registry.remove(SchemataIS::getTable());
132
SchemataIS::cleanup();
134
92
registry.remove(SessionStatusIS::getTable());
135
93
SessionStatusIS::cleanup();
146
104
registry.remove(TableConstraintsIS::getTable());
147
105
TableConstraintsIS::cleanup();
149
registry.remove(TablesIS::getTable());
152
registry.remove(TableNamesIS::getTable());
153
TableNamesIS::cleanup();
155
107
registry.remove(VariablesIS::getTable());
156
108
VariablesIS::cleanup();