~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.h

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
323
323
  static bool addPlugin(plugin::StorageEngine *engine);
324
324
  static void removePlugin(plugin::StorageEngine *engine);
325
325
 
 
326
  static int getTableDefinition(Session& session,
 
327
                                const drizzled::identifier::Table &identifier,
 
328
                                message::table::shared_ptr &table_proto,
 
329
                                bool include_temporary_tables= true);
326
330
  static message::table::shared_ptr getTableMessage(Session& session,
327
331
                                                    const drizzled::identifier::Table &identifier,
 
332
                                                    drizzled::error_t &error,
328
333
                                                    bool include_temporary_tables= true);
329
334
  static bool doesTableExist(Session &session,
330
335
                             const drizzled::identifier::Table &identifier,
357
362
 
358
363
  // @note All schema methods defined here
359
364
  static void getIdentifiers(Session &session, identifier::Schema::vector &schemas);
360
 
  static message::schema::shared_ptr getSchemaDefinition(const drizzled::identifier::Table &identifier);
361
 
  static message::schema::shared_ptr getSchemaDefinition(const drizzled::identifier::Schema &identifier);
 
365
  static bool getSchemaDefinition(const drizzled::identifier::Table &identifier, message::schema::shared_ptr &proto);
 
366
  static bool getSchemaDefinition(const drizzled::identifier::Schema &identifier, message::schema::shared_ptr &proto);
362
367
  static bool doesSchemaExist(const drizzled::identifier::Schema &identifier);
363
368
  static const CHARSET_INFO *getSchemaCollation(const drizzled::identifier::Schema &identifier);
364
369
  static bool createSchema(const drizzled::message::Schema &schema_message);
365
 
  static bool dropSchema(Session &session,
366
 
                         identifier::Schema::const_reference identifier,
367
 
                         message::schema::const_reference schema_message);
 
370
  static bool dropSchema(drizzled::Session& session, identifier::Schema::const_reference identifier);
368
371
  static bool alterSchema(const drizzled::message::Schema &schema_message);
369
372
 
370
373
  // @note make private/protected
372
375
  virtual void doGetSchemaIdentifiers(identifier::Schema::vector&)
373
376
  { }
374
377
 
375
 
  virtual drizzled::message::schema::shared_ptr doGetSchemaDefinition(const drizzled::identifier::Schema&)
 
378
  virtual bool doGetSchemaDefinition(const drizzled::identifier::Schema&, drizzled::message::schema::shared_ptr&)
376
379
  { 
377
 
    return drizzled::message::schema::shared_ptr(); 
 
380
    return false; 
378
381
  }
379
382
 
380
383
  virtual bool doCreateSchema(const drizzled::message::Schema&)
401
404
  Cursor *getCursor(Table &share);
402
405
 
403
406
  uint32_t max_record_length() const
404
 
  { return std::min(HA_MAX_REC_LENGTH, max_supported_record_length()); }
 
407
  { return std::min((unsigned int)HA_MAX_REC_LENGTH, max_supported_record_length()); }
405
408
  uint32_t max_keys() const
406
 
  { return std::min(MAX_KEY, max_supported_keys()); }
 
409
  { return std::min((unsigned int)MAX_KEY, max_supported_keys()); }
407
410
  uint32_t max_key_parts() const
408
 
  { return std::min(MAX_REF_PARTS, max_supported_key_parts()); }
 
411
  { return std::min((unsigned int)MAX_REF_PARTS, max_supported_key_parts()); }
409
412
  uint32_t max_key_length() const
410
 
  { return std::min(MAX_KEY_LENGTH, max_supported_key_length()); }
 
413
  { return std::min((unsigned int)MAX_KEY_LENGTH, max_supported_key_length()); }
411
414
  uint32_t max_key_part_length(void) const
412
 
  { return std::min(MAX_KEY_LENGTH, max_supported_key_part_length()); }
 
415
  { return std::min((unsigned int)MAX_KEY_LENGTH, max_supported_key_part_length()); }
413
416
 
414
417
  virtual uint32_t max_supported_record_length(void) const
415
418
  { return HA_MAX_REC_LENGTH; }