|
drizzle
C++ MySQL-protocol-compatible database server
|
Public Types | |
| typedef uint64_t | Table_flags |
| Public Types inherited from drizzled::plugin::Plugin | |
| typedef std::pair< const std::string, const std::string > | map_key |
| typedef std::unique_ptr< plugin::Plugin, deleter_fn > | owned_ptr |
| typedef std::map< const map_key, owned_ptr > | map |
| typedef std::vector< Plugin * > | vector |
Public Member Functions | |
| const std::string & | getTableDefinitionFileExtension () |
| virtual message::Table::Index::IndexType | default_index_type () const |
| const std::vector< std::string > & | getAliases () const |
| void | addAlias (std::string alias) |
| StorageEngine (const std::string &name_arg, const std::bitset< HTON_BIT_SIZE > &flags_arg=HTON_NO_FLAGS) | |
| virtual void | print_error (int error, myf errflag, const Table &table) const |
| bool | is_user_selectable () const |
| bool | check_flag (const engine_flag_bits flag) const |
| virtual uint32_t | index_flags (drizzled::message::Table::Index::IndexType) const |
| virtual void | startStatement (Session *session) |
| virtual void | endStatement (Session *session) |
| virtual int | close_connection (Session *) |
| virtual Cursor * | create (Table &)=0 |
| virtual bool | flush_logs () |
| virtual bool | show_status (Session *, stat_print_fn *, enum ha_stat_type) |
| virtual const char ** | bas_ext () const =0 |
| int | renameTable (Session &session, const drizzled::identifier::Table &from, const drizzled::identifier::Table &to) |
| Cursor * | getCursor (Table &share) |
| uint32_t | max_record_length () const |
| uint32_t | max_keys () const |
| uint32_t | max_key_parts () const |
| uint32_t | max_key_length () const |
| uint32_t | max_key_part_length (void) const |
| virtual uint32_t | max_supported_record_length (void) const |
| virtual uint32_t | max_supported_keys (void) const |
| virtual uint32_t | max_supported_key_parts (void) const |
| virtual uint32_t | max_supported_key_length (void) const |
| virtual uint32_t | max_supported_key_part_length (void) const |
| virtual bool | participatesInSqlTransaction () const |
| virtual bool | participatesInXaTransaction () const |
| virtual bool | alwaysRegisterForXaTransaction () const |
| virtual bool | validateCreateTableOption (const std::string &key, const std::string &state) |
| virtual bool | validateCreateSchemaOption (const std::string &key, const std::string &state) |
| Public Member Functions inherited from drizzled::plugin::Plugin | |
| Plugin (const std::string &name, const std::string &type_name) | |
| virtual void | shutdownPlugin () |
| virtual void | prime () |
| virtual void | startup (drizzled::Session &) |
| void | activate () |
| void | deactivate () |
| bool | isActive () const |
| const std::string & | getName () const |
| void | setModule (module::Module *module) |
| const std::string & | getTypeName () const |
| virtual bool | removeLast () const |
| const std::string & | getModuleName () const |
| Public Member Functions inherited from drizzled::plugin::MonitoredInTransaction | |
| size_t | getId () const |
Static Public Member Functions | |
| static bool | addPlugin (plugin::StorageEngine &engine) |
| static void | removePlugin (plugin::StorageEngine &engine) |
| static message::table::shared_ptr | getTableMessage (Session &session, const drizzled::identifier::Table &identifier, bool include_temporary_tables=true) |
| static bool | doesTableExist (Session &session, const drizzled::identifier::Table &identifier, bool include_temporary_tables=true) |
| static plugin::StorageEngine * | findByName (const std::string &find_str) |
| static plugin::StorageEngine * | findByName (Session &session, const std::string &find_str) |
| static void | closeConnection (Session &) |
| static void | dropDatabase (char *path) |
| static bool | flushLogs (plugin::StorageEngine *db_type) |
| static bool | dropTable (Session &session, const drizzled::identifier::Table &identifier) |
| static bool | dropTable (Session &session, const drizzled::identifier::Table &identifier, drizzled::error_t &error) |
| static bool | dropTable (Session &session, StorageEngine &engine, const identifier::Table &identifier, drizzled::error_t &error) |
| static void | getIdentifiers (Session &session, const identifier::Schema &schema_identifier, identifier::table::vector &set_of_identifiers) |
| static bool | canCreateTable (const drizzled::identifier::Table &identifier) |
| static void | getIdentifiers (Session &session, identifier::schema::vector &schemas) |
| static message::schema::shared_ptr | getSchemaDefinition (const drizzled::identifier::Table &identifier) |
| static message::schema::shared_ptr | getSchemaDefinition (const drizzled::identifier::Schema &identifier) |
| static bool | doesSchemaExist (const drizzled::identifier::Schema &identifier) |
| static const charset_info_st * | getSchemaCollation (const drizzled::identifier::Schema &identifier) |
| static bool | createSchema (const drizzled::message::Schema &schema_message) |
| static bool | dropSchema (Session &session, const identifier::Schema &identifier, message::schema::const_reference schema_message) |
| static bool | alterSchema (const drizzled::message::Schema &schema_message) |
| static const std::string & | resolveName (const StorageEngine *engine) |
| static bool | createTable (Session &session, const identifier::Table &identifier, message::Table &table_message) |
| static void | removeLostTemporaryTables (Session &session, const char *directory) |
Protected Types | |
| typedef std::map< std::string, message::Table > | ProtoCache |
| Used as a protobuf storage currently by TEMP only engines. | |
Protected Member Functions | |
| virtual int | doGetTableDefinition (Session &session, const drizzled::identifier::Table &identifier, message::Table &table_message) |
| void | print_keydup_error (uint32_t key_nr, const char *msg, const Table &table) const |
| virtual bool | get_error_message (int error, String *buf) const |
| virtual int | doCreateTable (Session &session, Table &table_arg, const drizzled::identifier::Table &identifier, const message::Table &message)=0 |
| virtual int | doRenameTable (Session &session, const drizzled::identifier::Table &from, const drizzled::identifier::Table &to)=0 |
| virtual int | doDropTable (Session &session, const drizzled::identifier::Table &identifier)=0 |
| virtual void | doGetTableIdentifiers (CachedDirectory &directory, const drizzled::identifier::Schema &schema_identifier, identifier::table::vector &set_of_identifiers)=0 |
| virtual bool | doDoesTableExist (Session &session, const drizzled::identifier::Table &identifier) |
| virtual bool | doCanCreateTable (const drizzled::identifier::Table &identifier) |
| virtual void | doGetSchemaIdentifiers (identifier::schema::vector &) |
| virtual drizzled::message::schema::shared_ptr | doGetSchemaDefinition (const drizzled::identifier::Schema &) |
| virtual bool | doCreateSchema (const drizzled::message::Schema &) |
| virtual bool | doAlterSchema (const drizzled::message::Schema &) |
| virtual bool | doDropSchema (const drizzled::identifier::Schema &) |
Static Protected Member Functions | |
| static int | deleteDefinitionFromPath (const drizzled::identifier::Table &identifier) |
| static int | renameDefinitionFromPath (const drizzled::identifier::Table &dest, const drizzled::identifier::Table &src) |
| static int | writeDefinitionFromPath (const drizzled::identifier::Table &identifier, const message::Table &proto) |
| static bool | readTableFile (const std::string &path, message::Table &table_message) |
Protected Attributes | |
| std::string | table_definition_ext |
| ProtoCache | proto_cache |
| pthread_mutex_t | proto_cache_mutex |
Private Member Functions | |
| virtual void | setTransactionReadWrite (Session &session) |
| virtual void | doStartStatement (Session *session) |
| virtual void | doEndStatement (Session *session) |
Static Private Member Functions | |
| static EngineVector & | getSchemaEngines () |
Private Attributes | |
| const std::bitset< HTON_BIT_SIZE > | flags |
| std::vector< std::string > | aliases |
Friends | |
| class | SEAPITester |
| class | AddSchemaNames |
| class | AddTableIdentifier |
| class | AlterSchema |
| class | CanCreateTable |
| class | CreateSchema |
| class | DropSchema |
| class | DropTable |
| class | DropTables |
| class | FindEngineByName |
| class | Ha_delete_table_error_handler |
| class | StorageEngineCloseConnection |
| class | StorageEngineDoesTableExist |
| class | StorageEngineGetSchemaDefinition |
| class | StorageEngineGetTableDefinition |
| class | DropTableByIdentifier |
Definition at line 124 of file storage_engine.h.
|
protected |
Used as a protobuf storage currently by TEMP only engines.
Definition at line 192 of file storage_engine.h.
| typedef uint64_t drizzled::plugin::StorageEngine::Table_flags |
Definition at line 130 of file storage_engine.h.
| drizzled::plugin::StorageEngine::StorageEngine | ( | const std::string & | name_arg, |
| const std::bitset< HTON_BIT_SIZE > & | flags_arg = HTON_NO_FLAGS ) |
Definition at line 83 of file storage_engine.cc.
|
virtual |
Definition at line 91 of file storage_engine.cc.
|
inline |
Definition at line 181 of file storage_engine.h.
|
static |
Definition at line 152 of file storage_engine.cc.
|
static |
Definition at line 319 of file schema_engine.cc.
|
inlinevirtual |
Returns true if the class should be registered for every XA transaction regardless of whether the class modifies the server's state.
As an example, the XaTransactionApplier plugin class returns true for this virtual method. Even though it does not change the result of the transaction (it simply is logging the changes made by other resource managers), the applier plugin should be enlisted in all XA transactions in order to be able to rollback or recover its logging activity properly.
Implements drizzled::plugin::MonitoredInTransaction.
Reimplemented in drizzled::plugin::TransactionalStorageEngine, and drizzled::plugin::XaStorageEngine.
Definition at line 431 of file storage_engine.h.
|
pure virtual |
If frm_error() is called then we will use this to find out what file extentions exist for the storage engine. This is also used by the default rename_table and delete_table method in Cursor.cc.
For engines that have two file name extentions (separate meta/index file and data file), the order of elements is relevant. First element of engine file name extentions array should be meta/index file extention. Second element - data file extention. This order is assumed by prepare_for_repair() when REPAIR Table ... USE_FRM is issued.
Implemented in drizzled::plugin::SEAPITester, Function, Schema, and TableProtoTesterEngine.
|
static |
Definition at line 959 of file storage_engine.cc.
|
inline |
Definition at line 226 of file storage_engine.h.
|
inlinevirtual |
Definition at line 245 of file storage_engine.h.
|
static |
Definition at line 201 of file storage_engine.cc.
|
static |
Definition at line 152 of file schema_engine.cc.
|
static |
Initiates table-file and calls appropriate database-creator.
| 0 | ok |
| 1 | error |
Definition at line 418 of file storage_engine.cc.
|
inlinevirtual |
Definition at line 167 of file storage_engine.h.
|
staticprotected |
Definition at line 846 of file storage_engine.cc.
|
inlineprotectedvirtual |
Definition at line 373 of file storage_engine.h.
|
inlineprotectedvirtual |
Definition at line 289 of file storage_engine.h.
|
inlineprotectedvirtual |
Definition at line 370 of file storage_engine.h.
|
protectedvirtual |
Definition at line 268 of file storage_engine.cc.
|
inlineprotectedvirtual |
Definition at line 376 of file storage_engine.h.
|
protectedpure virtual |
Delete all files with extension from bas_ext().
| name | Base name of table |
| 0 | If we successfully deleted at least one file from base_ext and didn't get any other errors than ENOENT |
| !0 | Error |
Implemented in drizzled::plugin::SEAPITester, Function, Schema, and TableProtoTesterEngine.
Definition at line 127 of file storage_engine.cc.
|
inlineprivatevirtual |
Definition at line 153 of file storage_engine.h.
|
static |
Definition at line 105 of file schema_engine.cc.
|
static |
Utility method which hides some of the details of getTableDefinition()
Definition at line 254 of file storage_engine.cc.
|
inlineprotectedvirtual |
Definition at line 365 of file storage_engine.h.
|
inlineprotectedvirtual |
Definition at line 362 of file storage_engine.h.
|
inlineprotectedvirtual |
Definition at line 203 of file storage_engine.h.
|
inlineprivatevirtual |
Definition at line 143 of file storage_engine.h.
|
static |
Definition at line 224 of file schema_engine.cc.
|
static |
Definition at line 375 of file storage_engine.cc.
|
static |
Definition at line 351 of file storage_engine.cc.
|
static |
Definition at line 382 of file storage_engine.cc.
|
inlinevirtual |
Definition at line 237 of file storage_engine.h.
|
static |
Definition at line 177 of file storage_engine.cc.
|
static |
Definition at line 190 of file storage_engine.cc.
|
inlinevirtual |
Definition at line 252 of file storage_engine.h.
|
static |
Definition at line 210 of file storage_engine.cc.
|
protectedvirtual |
Return an error message specific to this Cursor.
| error | error code previously returned by Cursor |
| buf | pointer to String where to add error message |
Definition at line 812 of file storage_engine.cc.
|
inline |
Definition at line 176 of file storage_engine.h.
Definition at line 469 of file storage_engine.cc.
|
static |
Definition at line 474 of file storage_engine.cc.
|
static |
Definition at line 51 of file schema_engine.cc.
|
static |
Definition at line 113 of file schema_engine.cc.
|
static |
Definition at line 89 of file schema_engine.cc.
|
static |
Definition at line 83 of file schema_engine.cc.
|
staticprivate |
Definition at line 73 of file storage_engine.cc.
|
inline |
Definition at line 162 of file storage_engine.h.
|
static |
Definition at line 275 of file storage_engine.cc.
|
inlinevirtual |
Definition at line 232 of file storage_engine.h.
|
inline |
Definition at line 221 of file storage_engine.h.
|
inline |
Definition at line 399 of file storage_engine.h.
|
inline |
Definition at line 401 of file storage_engine.h.
|
inline |
Definition at line 397 of file storage_engine.h.
|
inline |
Definition at line 395 of file storage_engine.h.
|
inline |
Definition at line 393 of file storage_engine.h.
|
inlinevirtual |
Definition at line 408 of file storage_engine.h.
|
inlinevirtual |
Definition at line 409 of file storage_engine.h.
|
inlinevirtual |
Definition at line 407 of file storage_engine.h.
|
inlinevirtual |
Definition at line 406 of file storage_engine.h.
|
inlinevirtual |
Definition at line 404 of file storage_engine.h.
|
inlinevirtual |
Returns true if the class should participate in the SQL transaction.
Implements drizzled::plugin::MonitoredInTransaction.
Reimplemented in drizzled::plugin::TransactionalStorageEngine, and drizzled::plugin::XaStorageEngine.
Definition at line 423 of file storage_engine.h.
|
inlinevirtual |
Returns true if the class should participate in the XA transaction.
Implements drizzled::plugin::MonitoredInTransaction.
Reimplemented in drizzled::plugin::TransactionalStorageEngine, and drizzled::plugin::XaStorageEngine.
Definition at line 427 of file storage_engine.h.
|
virtual |
Print error that we got from Cursor function.
Definition at line 611 of file storage_engine.cc.
|
protected |
Definition at line 818 of file storage_engine.cc.
|
staticprotected |
Definition at line 969 of file storage_engine.cc.
|
static |
Definition at line 523 of file storage_engine.cc.
|
static |
Definition at line 168 of file storage_engine.cc.
|
staticprotected |
Definition at line 855 of file storage_engine.cc.
| int drizzled::plugin::StorageEngine::renameTable | ( | Session & | session, |
| const drizzled::identifier::Table & | from, | ||
| const drizzled::identifier::Table & | to ) |
Definition at line 101 of file storage_engine.cc.
|
inlinestatic |
Definition at line 380 of file storage_engine.h.
|
privatevirtual |
Definition at line 95 of file storage_engine.cc.
|
inlinevirtual |
Definition at line 253 of file storage_engine.h.
|
inlinevirtual |
Definition at line 233 of file storage_engine.h.
|
inlinevirtual |
Definition at line 444 of file storage_engine.h.
|
inlinevirtual |
Definition at line 436 of file storage_engine.h.
|
staticprotected |
Definition at line 884 of file storage_engine.cc.
|
friend |
Definition at line 294 of file storage_engine.h.
|
friend |
Definition at line 295 of file storage_engine.h.
|
friend |
Definition at line 296 of file storage_engine.h.
|
friend |
Definition at line 297 of file storage_engine.h.
|
friend |
Definition at line 298 of file storage_engine.h.
|
friend |
Definition at line 299 of file storage_engine.h.
|
friend |
Definition at line 300 of file storage_engine.h.
|
friend |
Definition at line 308 of file storage_engine.h.
|
friend |
Definition at line 301 of file storage_engine.h.
|
friend |
Definition at line 302 of file storage_engine.h.
|
friend |
Definition at line 303 of file storage_engine.h.
|
friend |
Definition at line 128 of file storage_engine.h.
|
friend |
Definition at line 304 of file storage_engine.h.
|
friend |
Definition at line 305 of file storage_engine.h.
|
friend |
Definition at line 306 of file storage_engine.h.
|
friend |
Definition at line 307 of file storage_engine.h.
|
private |
Definition at line 173 of file storage_engine.h.
|
private |
Definition at line 134 of file storage_engine.h.
|
protected |
Definition at line 193 of file storage_engine.h.
|
protected |
Definition at line 194 of file storage_engine.h.
|
protected |
Definition at line 159 of file storage_engine.h.