~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.h

  • Committer: Stewart Smith
  • Date: 2009-06-01 08:54:21 UTC
  • mto: This revision was merged to the branch mainline in revision 1053.
  • Revision ID: stewart@flamingspork.com-20090601085421-pif6mevm16v1be9e
move bas_ext to StorageEngine instead of handler

precursor to moving delete_table

Show diffs side-by-side

added added

removed removed

Lines of Context:
245
245
 
246
246
  /* args: current_session, db, name */
247
247
  virtual int table_exists_in_engine(Session*, const char *, const char *);
 
248
 
 
249
  /**
 
250
    If frm_error() is called then we will use this to find out what file
 
251
    extentions exist for the storage engine. This is also used by the default
 
252
    rename_table and delete_table method in handler.cc.
 
253
 
 
254
    For engines that have two file name extentions (separate meta/index file
 
255
    and data file), the order of elements is relevant. First element of engine
 
256
    file name extentions array should be meta/index file extention. Second
 
257
    element - data file extention. This order is assumed by
 
258
    prepare_for_repair() when REPAIR Table ... USE_FRM is issued.
 
259
  */
 
260
  virtual const char **bas_ext() const =0;
 
261
 
248
262
};
249
263
 
250
264
/* lookups */