~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-27 01:53:04 UTC
  • mfrom: (1309.1.17 fix_is)
  • Revision ID: brian@gaz-20100227015304-xxruqg8c4snj32u3
Merge Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
typedef hash_map<std::string, StorageEngine *> EngineMap;
126
126
typedef std::vector<StorageEngine *> EngineVector;
127
127
 
 
128
typedef std::set<std::string> TableNameList;
 
129
typedef std::set<std::string> SchemaNameList;
 
130
 
128
131
extern const std::string UNKNOWN_STRING;
129
132
extern const std::string DEFAULT_DEFINITION_FILE_EXT;
130
133
 
322
325
  // TODO: move these to protected
323
326
  virtual void doGetTableNames(CachedDirectory &directory,
324
327
                               std::string& db_name,
325
 
                               std::set<std::string>& set_of_names);
 
328
                               TableNameList &set_of_names);
326
329
  virtual int doDropTable(Session& session,
327
330
                          const std::string table_path)= 0;
328
331
 
356
359
  static int dropTable(Session& session,
357
360
                       TableIdentifier &identifier,
358
361
                       bool generate_warning);
359
 
  static void getTableNames(const std::string& db_name, std::set<std::string> &set_of_names);
 
362
  static void getTableNames(const std::string& db_name, TableNameList &set_of_names);
360
363
 
361
364
  // @note All schema methods defined here
362
 
  static void getSchemaNames(std::set<std::string>& set_of_names);
 
365
  static void getSchemaNames(SchemaNameList &set_of_names);
363
366
  static bool getSchemaDefinition(const std::string &schema_name, message::Schema &proto);
364
367
  static bool doesSchemaExist(const std::string &schema_name);
365
368
  static const CHARSET_INFO *getSchemaCollation(const std::string &schema_name);
368
371
  static bool alterSchema(const drizzled::message::Schema &schema_message);
369
372
 
370
373
  // @note make private/protected
371
 
  virtual void doGetSchemaNames(std::set<std::string>& set_of_names)
 
374
  virtual void doGetSchemaNames(SchemaNameList &set_of_names)
372
375
  { (void)set_of_names; }
373
376
 
374
377
  virtual bool doGetSchemaDefinition(const std::string &schema_name, drizzled::message::Schema &proto)