~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/data_engine/function.h

Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#include "config.h"
 
21
#ifndef PLUGIN_DATA_ENGINE_FUNCTION_H
 
22
#define PLUGIN_DATA_ENGINE_FUNCTION_H
 
23
 
22
24
#include <assert.h>
23
25
#include <drizzled/session.h>
24
26
#include <drizzled/plugin/storage_engine.h>
25
27
#include <drizzled/plugin/table_function.h>
26
28
 
27
 
#ifndef PLUGIN_DATA_ENGINE_FUNCTION_H
28
 
#define PLUGIN_DATA_ENGINE_FUNCTION_H
29
29
 
30
30
#include <plugin/data_engine/schemas.h>
31
31
 
38
38
 
39
39
#include <plugin/data_engine/status.h>
40
40
 
41
 
extern const CHARSET_INFO *default_charset_info;
 
41
extern const drizzled::CHARSET_INFO *default_charset_info;
42
42
 
43
43
static const char *function_exts[] = {
44
44
  NULL
55
55
 
56
56
  drizzled::plugin::TableFunction *getTool(const char *name_arg);
57
57
 
58
 
  int doCreateTable(Session *,
 
58
  int doCreateTable(drizzled::Session *,
59
59
                    const char *,
60
 
                    Table&,
 
60
                    drizzled::Table&,
61
61
                    drizzled::message::Table&)
62
62
  {
63
63
    return EPERM;
64
64
  }
65
65
 
66
 
  int doDropTable(Session&, const std::string) 
 
66
  int doDropTable(drizzled::Session&, const std::string) 
67
67
  { 
68
68
    return EPERM; 
69
69
  }
70
70
 
71
 
  virtual Cursor *create(TableShare &table, drizzled::memory::Root *mem_root);
 
71
  virtual drizzled::Cursor *create(drizzled::TableShare &table,
 
72
                                   drizzled::memory::Root *mem_root);
72
73
 
73
74
  const char **bas_ext() const 
74
75
  {
84
85
                       std::string &db, 
85
86
                       std::set<std::string> &set_of_names);
86
87
 
87
 
  int doGetTableDefinition(Session &session,
 
88
  int doGetTableDefinition(drizzled::Session &session,
88
89
                           const char *path,
89
90
                           const char *db,
90
91
                           const char *table_name,