~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.h

Merged up with build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include <drizzled/handler_structs.h>
27
27
#include <drizzled/message/table.pb.h>
28
28
#include "drizzled/plugin/plugin.h"
29
 
#include <drizzled/name_map.h>
30
29
 
31
30
#include "mysys/cached_directory.h"
32
31
 
40
39
class Cursor;
41
40
 
42
41
class TableShare;
43
 
typedef struct st_mysql_lex_string LEX_STRING;
 
42
typedef drizzle_lex_string LEX_STRING;
44
43
typedef bool (stat_print_fn)(Session *session, const char *type, uint32_t type_len,
45
44
                             const char *file, uint32_t file_len,
46
45
                             const char *status, uint32_t status_len);
75
74
  HTON_BIT_PRIMARY_KEY_REQUIRED_FOR_DELETE,
76
75
  HTON_BIT_NO_PREFIX_CHAR_KEYS,
77
76
  HTON_BIT_HAS_CHECKSUM,
78
 
  HTON_BIT_ANY_INDEX_MAY_BE_UNIQUE,
79
77
  HTON_BIT_SKIP_STORE_LOCK,
80
78
  HTON_BIT_SIZE
81
79
};
109
107
static const std::bitset<HTON_BIT_SIZE> HTON_PRIMARY_KEY_REQUIRED_FOR_DELETE(1 << HTON_BIT_PRIMARY_KEY_REQUIRED_FOR_DELETE);
110
108
static const std::bitset<HTON_BIT_SIZE> HTON_NO_PREFIX_CHAR_KEYS(1 << HTON_BIT_NO_PREFIX_CHAR_KEYS);
111
109
static const std::bitset<HTON_BIT_SIZE> HTON_HAS_CHECKSUM(1 << HTON_BIT_HAS_CHECKSUM);
112
 
static const std::bitset<HTON_BIT_SIZE> HTON_ANY_INDEX_MAY_BE_UNIQUE(1 << HTON_BIT_ANY_INDEX_MAY_BE_UNIQUE);
113
110
static const std::bitset<HTON_BIT_SIZE> HTON_SKIP_STORE_LOCK(1 << HTON_BIT_SKIP_STORE_LOCK);
114
111
 
115
112
 
120
117
namespace plugin
121
118
{
122
119
 
123
 
const std::string UNKNOWN_STRING("UNKNOWN");
124
 
const std::string DEFAULT_DEFINITION_FILE_EXT(".dfe");
125
 
 
 
120
extern const std::string UNKNOWN_STRING;
 
121
extern const std::string DEFAULT_DEFINITION_FILE_EXT;
126
122
 
127
123
/*
128
124
  StorageEngine is a singleton structure - one instance per storage engine -
172
168
    return table_definition_ext;
173
169
  }
174
170
 
 
171
private:
 
172
  std::vector<std::string> aliases;
 
173
 
 
174
public:
 
175
  const std::vector<std::string>& getAliases() const
 
176
  {
 
177
    return aliases;
 
178
  }
 
179
 
 
180
  void addAlias(std::string alias)
 
181
  {
 
182
    aliases.push_back(alias);
 
183
  }
 
184
 
175
185
protected:
176
186
 
177
187
  /**
261
271
    return flags.test(flag);
262
272
  }
263
273
 
 
274
  // @todo match check_flag interface
 
275
  virtual uint32_t index_flags(enum  ha_key_alg) const { return 0; }
 
276
 
 
277
 
264
278
  void enable() { enabled= true; }
265
279
  void disable() { enabled= false; }
266
280