37
37
static ShowTableStatus *table_status;
40
static int init(drizzled::plugin::Registry ®istry)
40
static int init(drizzled::plugin::Context &context)
42
42
columns= new(std::nothrow)ColumnsTool;
43
43
index_parts= new(std::nothrow)IndexPartsTool;
52
52
table_status= new(std::nothrow)ShowTableStatus;
53
53
tables= new(std::nothrow)TablesTool;
55
registry.add(columns);
56
registry.add(index_parts);
57
registry.add(indexes);
58
registry.add(local_tables);
59
registry.add(referential_constraints);
60
registry.add(schema_names);
61
registry.add(schemas);
62
registry.add(show_indexes);
63
registry.add(show_columns);
64
registry.add(table_constraints);
65
registry.add(table_status);
56
context.add(index_parts);
58
context.add(local_tables);
59
context.add(referential_constraints);
60
context.add(schema_names);
62
context.add(show_indexes);
63
context.add(show_columns);
64
context.add(table_constraints);
65
context.add(table_status);
71
static int finalize(drizzled::plugin::Registry ®istry)
71
static int finalize(drizzled::plugin::Context &context)
73
registry.remove(columns);
74
registry.remove(index_parts);
75
registry.remove(indexes);
76
registry.remove(local_tables);
77
registry.remove(referential_constraints);
78
registry.remove(schema_names);
79
registry.remove(schemas);
80
registry.remove(show_indexes);
81
registry.remove(show_columns);
82
registry.remove(table_constraints);
83
registry.remove(table_status);
84
registry.remove(tables);
73
context.remove(columns);
74
context.remove(index_parts);
75
context.remove(indexes);
76
context.remove(local_tables);
77
context.remove(referential_constraints);
78
context.remove(schema_names);
79
context.remove(schemas);
80
context.remove(show_indexes);
81
context.remove(show_columns);
82
context.remove(table_constraints);
83
context.remove(table_status);
84
context.remove(tables);
86
86
delete index_parts;