~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/table_function.h

  • Committer: Brian Aker
  • Date: 2011-02-22 04:19:44 UTC
  • mto: (2192.1.1 drizzle-staging)
  • mto: This revision was merged to the branch mainline in revision 2193.
  • Revision ID: brian@tangent.org-20110222041944-furz1h252ecz7mpd
Merge in modifications such that we check both schema and table for
replication option.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 *
4
4
 *  Definitions required for TableFunction plugin
5
5
 *
6
 
 *  Copyright (C) 2010 Sun Microsystems
 
6
 *  Copyright (C) 2010 Sun Microsystems, Inc.
7
7
 *  Copyright (C) 2010 Monty Taylor
8
8
 *
9
9
 *  This program is free software; you can redistribute it and/or modify
24
24
#define DRIZZLED_PLUGIN_TABLE_FUNCTION_H
25
25
 
26
26
#include <drizzled/definitions.h>
27
 
#include "drizzled/plugin.h"
28
 
#include "drizzled/plugin/plugin.h"
29
 
#include "drizzled/identifier.h"
30
 
#include "drizzled/message/table.pb.h"
31
 
#include "drizzled/charset.h"
32
 
#include "drizzled/field.h"
 
27
#include <drizzled/plugin.h>
 
28
#include <drizzled/plugin/plugin.h>
 
29
#include <drizzled/identifier.h>
 
30
#include <drizzled/message/table.pb.h>
 
31
#include <drizzled/charset.h>
 
32
#include <drizzled/field.h>
33
33
 
34
34
#include <string>
35
35
#include <set>
36
36
#include <algorithm>
37
37
 
 
38
#include <drizzled/visibility.h>
 
39
 
38
40
namespace drizzled
39
41
{
40
42
 
41
 
extern int wild_case_compare(const CHARSET_INFO * const cs, 
42
 
                             const char *str,const char *wildstr);
43
 
 
44
43
namespace plugin
45
44
{
46
45
 
61
60
  return buffer;
62
61
}
63
62
 
64
 
class TableFunction : public Plugin
 
63
class DRIZZLED_API TableFunction : public Plugin
65
64
{
66
65
  TableFunction();
67
66
  TableFunction(const TableFunction &);
68
67
  TableFunction& operator=(const TableFunction &);
69
68
 
70
69
  message::Table proto;
71
 
  TableIdentifier identifier;
 
70
  identifier::Table identifier;
72
71
  std::string local_path;
73
72
  std::string original_table_label;
74
73
 
99
98
    BOOLEAN,
100
99
    NUMBER,
101
100
    STRING,
102
 
    VARBINARY
 
101
    VARBINARY,
 
102
    SIZE
103
103
  };
104
104
 
105
105
  class Generator