~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.h

  • Committer: Brian Aker
  • Date: 2011-01-12 02:29:00 UTC
  • mfrom: (2068.7.5 session-fix)
  • mto: This revision was merged to the branch mainline in revision 2077.
  • Revision ID: brian@gir-3-20110112022900-ash0in3luysxzpvl
MergeĀ inĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include "drizzled/cached_directory.h"
33
33
#include "drizzled/plugin/monitored_in_transaction.h"
34
34
 
 
35
#include <drizzled/error_t.h>
 
36
 
35
37
#include <bitset>
36
38
#include <string>
37
39
#include <vector>
201
203
  pthread_mutex_t proto_cache_mutex;
202
204
 
203
205
public:
204
 
 
205
206
  StorageEngine(const std::string name_arg,
206
207
                const std::bitset<HTON_BIT_SIZE> &flags_arg= HTON_NO_FLAGS);
207
208
 
221
222
 
222
223
  /* Old style cursor errors */
223
224
  void print_keydup_error(uint32_t key_nr, const char *msg, Table &table);
224
 
  void print_error(int error, myf errflag, Table *table= NULL);
225
225
  virtual bool get_error_message(int error, String *buf);
 
226
 
226
227
public:
227
228
  virtual void print_error(int error, myf errflag, Table& table);
228
229
 
313
314
  friend class StorageEngineDoesTableExist;
314
315
  friend class StorageEngineGetSchemaDefinition;
315
316
  friend class StorageEngineGetTableDefinition;
 
317
  friend class DropTableByIdentifier;
316
318
 
317
319
  int renameTable(Session &session, const drizzled::TableIdentifier &from, const drizzled::TableIdentifier &to);
318
320
 
334
336
  static void closeConnection(Session* session);
335
337
  static void dropDatabase(char* path);
336
338
  static bool flushLogs(plugin::StorageEngine *db_type);
337
 
  static int dropTable(Session& session,
338
 
                       const drizzled::TableIdentifier &identifier);
339
 
  static int dropTable(Session& session,
340
 
                       StorageEngine &engine,
341
 
                       const drizzled::TableIdentifier &identifier);
 
339
 
 
340
  static bool dropTable(Session& session,
 
341
                        const drizzled::TableIdentifier &identifier);
 
342
  static bool dropTable(Session& session,
 
343
                        const drizzled::TableIdentifier &identifier,
 
344
                        drizzled::error_t &error);
 
345
 
 
346
  static bool dropTable(Session& session,
 
347
                        StorageEngine &engine,
 
348
                        TableIdentifier::const_reference identifier,
 
349
                        drizzled::error_t &error);
 
350
 
342
351
  static void getIdentifiers(Session &session,
343
352
                             const SchemaIdentifier &schema_identifier,
344
353
                             TableIdentifier::vector &set_of_identifiers);
408
417
  virtual uint32_t max_supported_key_part_length(void) const { return 255; }
409
418
 
410
419
  /* TODO-> Make private */
 
420
protected:
411
421
  static int deleteDefinitionFromPath(const drizzled::TableIdentifier &identifier);
412
422
  static int renameDefinitionFromPath(const drizzled::TableIdentifier &dest, const drizzled::TableIdentifier &src);
413
423
  static int writeDefinitionFromPath(const drizzled::TableIdentifier &identifier, message::Table &proto);