~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/string_functions/functions.cc

This will now require someone to do a --plugin-add in order to have csv,
archive, or blackhole running.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
4
 *  Copyright (C) 2010 Brian Aker
5
 
 *  Copyright (C) 2010 Stewart Smith
6
5
 *
7
6
 *  This program is free software; you can redistribute it and/or modify
8
7
 *  it under the terms of the GNU General Public License as published by
20
19
 */
21
20
 
22
21
#include "config.h"
23
 
 
24
 
#include <drizzled/plugin.h>
25
22
#include "plugin/string_functions/functions.h"
26
23
 
27
24
using namespace drizzled;
28
25
 
29
26
static int init(drizzled::module::Context &context)
30
27
{
31
 
  context.add(new plugin::Create_function<Item_func_elt>("elt"));
32
 
  context.add(new plugin::Create_function<Item_func_format>("format"));
33
 
  context.add(new plugin::Create_function<Item_func_quote>("quote"));
34
 
  context.add(new plugin::Create_function<drizzled::string_functions::Regex>("regex"));
35
 
 
 
28
  (void)context;
 
29
  
36
30
  return 0;
37
31
}
38
32
 
41
35
  DRIZZLE_VERSION_ID,
42
36
  "String Functions",
43
37
  "1.0",
44
 
  "Brian Aker, Stewart Smith",
 
38
  "Brian Aker",
45
39
  "String Functions.",
46
40
  PLUGIN_LICENSE_GPL,
47
41
  init,