~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.h

  • Committer: Brian Aker
  • Date: 2010-02-25 07:54:52 UTC
  • mfrom: (1273.13.101 build)
  • Revision ID: brian@gaz-20100225075452-19eozreshbrerypu
Merge of all patches in build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
  HTON_BIT_NO_PREFIX_CHAR_KEYS,
82
82
  HTON_BIT_HAS_CHECKSUM,
83
83
  HTON_BIT_SKIP_STORE_LOCK,
 
84
  HTON_BIT_SCHEMA_DICTIONARY,
84
85
  HTON_BIT_SIZE
85
86
};
86
87
 
112
113
static const std::bitset<HTON_BIT_SIZE> HTON_NO_PREFIX_CHAR_KEYS(1 << HTON_BIT_NO_PREFIX_CHAR_KEYS);
113
114
static const std::bitset<HTON_BIT_SIZE> HTON_HAS_CHECKSUM(1 << HTON_BIT_HAS_CHECKSUM);
114
115
static const std::bitset<HTON_BIT_SIZE> HTON_SKIP_STORE_LOCK(1 << HTON_BIT_SKIP_STORE_LOCK);
 
116
static const std::bitset<HTON_BIT_SIZE> HTON_HAS_SCHEMA_DICTIONARY(1 << HTON_BIT_SCHEMA_DICTIONARY);
115
117
 
116
118
 
117
119
class Table;
294
296
  virtual int doRenameTable(Session* session,
295
297
                            const char *from, const char *to);
296
298
 
297
 
 
298
299
public:
299
300
 
300
301
  int renameTable(Session *session, const char *from, const char *to) 
319
320
 
320
321
  static int getTableDefinition(Session& session,
321
322
                                TableIdentifier &identifier,
322
 
                                message::Table *table_proto= NULL);
 
323
                                message::Table *table_proto= NULL,
 
324
                                bool include_temporary_tables= true);
323
325
  static int getTableDefinition(Session& session,
324
326
                                const char* path,
325
327
                                const char *db,
326
328
                                const char *table_name,
327
329
                                const bool is_tmp,
328
 
                                message::Table *table_proto= NULL);
 
330
                                message::Table *table_proto= NULL,
 
331
                                bool include_temporary_tables= true);
 
332
  static bool doesTableExist(Session& session,
 
333
                             TableIdentifier &identifier,
 
334
                             bool include_temporary_tables= true);
329
335
 
330
336
  static plugin::StorageEngine *findByName(std::string find_str);
331
337
  static plugin::StorageEngine *findByName(Session& session,
341
347
  // @note All schema methods defined here
342
348
  static void getSchemaNames(std::set<std::string>& set_of_names);
343
349
  static bool getSchemaDefinition(const std::string &schema_name, message::Schema &proto);
344
 
 
 
350
  static bool doesSchemaExist(const std::string &schema_name);
 
351
  static const CHARSET_INFO *getSchemaCollation(const std::string &schema_name);
 
352
  static bool createSchema(const drizzled::message::Schema &schema_message);
 
353
  static bool dropSchema(const std::string &schema_name);
 
354
  static bool alterSchema(const drizzled::message::Schema &schema_message);
 
355
 
 
356
  // @note make private/protected
 
357
  virtual void doGetSchemaNames(std::set<std::string>& set_of_names)
 
358
  { (void)set_of_names; }
 
359
 
 
360
  virtual bool doGetSchemaDefinition(const std::string &schema_name, drizzled::message::Schema &proto)
 
361
  { 
 
362
    (void)schema_name;
 
363
    (void)proto; 
 
364
 
 
365
    return false; 
 
366
  }
 
367
 
 
368
  virtual bool doCreateSchema(const drizzled::message::Schema &schema_message)
 
369
  { (void)schema_message; return false; }
 
370
 
 
371
  virtual bool doAlterSchema(const drizzled::message::Schema &schema_message)
 
372
  { (void)schema_message; return false; }
 
373
 
 
374
  virtual bool doDropSchema(const std::string &schema_name)
 
375
  { (void)schema_name; return false; }
345
376
 
346
377
  static inline const std::string &resolveName(const StorageEngine *engine)
347
378
  {