~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.h

  • Committer: Brian Aker
  • Date: 2009-04-09 15:03:26 UTC
  • mfrom: (971.1.44 mordred)
  • Revision ID: brian@gaz-20090409150326-cu50yn12esijpy1c
Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
#include <bitset>
28
28
#include <string>
 
29
#include <vector>
29
30
 
30
31
class TableList;
31
32
class Session;
95
96
  */
96
97
  size_t savepoint_offset;
97
98
  size_t orig_savepoint_offset;
 
99
  std::vector<std::string> aliases;
98
100
 
99
101
protected:
100
102
 
128
130
 
129
131
  virtual ~StorageEngine();
130
132
 
 
133
  const std::vector<std::string>& getAliases()
 
134
  {
 
135
    return aliases;
 
136
  }
 
137
 
 
138
  void addAlias(std::string alias)
 
139
  {
 
140
    aliases.push_back(alias);
 
141
  }
 
142
 
131
143
  bool has_2pc()
132
144
  {
133
145
    return two_phase_commit;
233
245
 
234
246
/* lookups */
235
247
StorageEngine *ha_default_storage_engine(Session *session);
236
 
st_plugin_int *ha_resolve_by_name(Session *session, const LEX_STRING *name);
237
 
st_plugin_int *ha_lock_engine(Session *session, StorageEngine *engine);
 
248
StorageEngine *ha_resolve_by_name(Session *session, const LEX_STRING *name);
238
249
handler *get_new_handler(TABLE_SHARE *share, MEM_ROOT *alloc,
239
250
                         StorageEngine *db_type);
240
251
const std::string ha_resolve_storage_engine_name(const StorageEngine *db_type);