~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/schema_engine/plugin.cc

  • Committer: Brian Aker
  • Date: 2010-03-17 19:18:40 UTC
  • mto: This revision was merged to the branch mainline in revision 1354.
  • Revision ID: brian@gaz-20100317191840-9ro7fajqp6lhaqjo
Update, we now have all of the ANSI INFORMATION_SCHEMA listed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
static drizzled::plugin::StorageEngine *schema_plugin= NULL;
31
31
 
32
 
static int init(drizzled::plugin::Context &context)
 
32
static int init(drizzled::plugin::Registry &registry)
33
33
{
34
34
  schema_plugin= new(std::nothrow) Schema();
35
35
 
38
38
    return 1;
39
39
  }
40
40
 
41
 
  context.add(schema_plugin);
 
41
  registry.add(schema_plugin);
 
42
 
 
43
  return 0;
 
44
}
 
45
 
 
46
static int finalize(drizzled::plugin::Registry &registry)
 
47
{
 
48
  registry.remove(schema_plugin);
 
49
  delete schema_plugin;
42
50
 
43
51
  return 0;
44
52
}
52
60
  "This implements the default file based Schema engine.",
53
61
  PLUGIN_LICENSE_GPL,
54
62
  init,     /* Plugin Init */
 
63
  finalize,     /* Plugin Deinit */
55
64
  NULL,               /* system variables */
56
65
  NULL                /* config options   */
57
66
}