38
38
static ShowTemporaryTables *show_temporary_tables;
41
static int init(drizzled::plugin::Registry ®istry)
41
static int init(drizzled::plugin::Context &context)
43
43
columns= new(std::nothrow)ColumnsTool;
44
44
index_parts= new(std::nothrow)IndexPartsTool;
54
54
table_status= new(std::nothrow)ShowTableStatus;
55
55
tables= new(std::nothrow)TablesTool;
57
registry.add(columns);
58
registry.add(index_parts);
59
registry.add(indexes);
60
registry.add(local_tables);
61
registry.add(referential_constraints);
62
registry.add(schema_names);
63
registry.add(schemas);
64
registry.add(show_columns);
65
registry.add(show_indexes);
66
registry.add(show_temporary_tables);
67
registry.add(table_constraints);
68
registry.add(table_status);
58
context.add(index_parts);
60
context.add(local_tables);
61
context.add(referential_constraints);
62
context.add(schema_names);
64
context.add(show_columns);
65
context.add(show_indexes);
66
context.add(show_temporary_tables);
67
context.add(table_constraints);
68
context.add(table_status);
74
static int finalize(drizzled::plugin::Registry ®istry)
76
registry.remove(columns);
77
registry.remove(index_parts);
78
registry.remove(indexes);
79
registry.remove(local_tables);
80
registry.remove(referential_constraints);
81
registry.remove(schema_names);
82
registry.remove(schemas);
83
registry.remove(show_columns);
84
registry.remove(show_indexes);
85
registry.remove(show_temporary_tables);
86
registry.remove(table_constraints);
87
registry.remove(table_status);
88
registry.remove(tables);
93
delete referential_constraints;
98
delete show_temporary_tables;
99
delete table_constraints;
106
74
DRIZZLE_DECLARE_PLUGIN
108
76
DRIZZLE_VERSION_ID,