Class of basic DDL implementation, for CREATE/DROP/RENAME TABLE.  
 More...
#include <ha_innodb.h>
 | 
| template<typename Table >  | 
| static int  | create_impl (THD *thd, const char *name, TABLE *form, HA_CREATE_INFO *create_info, Table *dd_tab, bool file_per_table, bool evictable, bool skip_strict, uint32_t old_flags, uint32_t old_flags2, const dd::Table *old_dd_table) | 
|   | Create an InnoDB table.  More...
  | 
|   | 
| template<typename Table >  | 
| static int  | delete_impl (THD *thd, const char *name, const Table *dd_tab, const TABLE *td) | 
|   | Drop an InnoDB table.  More...
  | 
|   | 
| template<typename Table >  | 
| static int  | rename_impl (THD *thd, const char *from, const char *to, const Table *from_table, const Table *to_table, const TABLE *td) | 
|   | Renames an InnoDB table.  More...
  | 
|   | 
Class of basic DDL implementation, for CREATE/DROP/RENAME TABLE. 
 
◆ create_impl()
template<typename Table > 
  
  
      
        
          | int innobase_basic_ddl::create_impl  | 
          ( | 
          THD *  | 
          thd,  | 
         
        
           | 
           | 
          const char *  | 
          name,  | 
         
        
           | 
           | 
          TABLE *  | 
          form,  | 
         
        
           | 
           | 
          HA_CREATE_INFO *  | 
          create_info,  | 
         
        
           | 
           | 
          Table *  | 
          dd_tab,  | 
         
        
           | 
           | 
          bool  | 
          file_per_table,  | 
         
        
           | 
           | 
          bool  | 
          evictable,  | 
         
        
           | 
           | 
          bool  | 
          skip_strict,  | 
         
        
           | 
           | 
          uint32_t  | 
          old_flags,  | 
         
        
           | 
           | 
          uint32_t  | 
          old_flags2,  | 
         
        
           | 
           | 
          const dd::Table *  | 
          old_dd_table  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Create an InnoDB table. 
- Template Parameters
 - 
  
    | Table | dd::Table or dd::Partition  | 
  
   
- Parameters
 - 
  
    | [in,out] | thd | THD object  | 
    | [in] | name | Table name, format: "db/table_name"  | 
    | [in] | form | Table format; columns and index information  | 
    | [in] | create_info | Create info(including create statement string)  | 
    | [in,out] | dd_tab | dd::Table describing table to be created  | 
    | [in] | file_per_table | whether to create a tablespace too  | 
    | [in] | evictable | whether the caller wants the dict_table_t to be kept in memory  | 
    | [in] | skip_strict | whether to skip strict check for create option  | 
    | [in] | old_flags | old Table flags  | 
    | [in] | old_flags2 | old Table flags2  | 
    | [in] | old_dd_table | Table def for old table. Used in truncate or while adding a new partition  | 
  
   
- Returns
 - error number 
 
- Return values
 - 
  
  
 
 
 
◆ delete_impl()
template<typename Table > 
  
  
      
        
          | int innobase_basic_ddl::delete_impl  | 
          ( | 
          THD *  | 
          thd,  | 
         
        
           | 
           | 
          const char *  | 
          name,  | 
         
        
           | 
           | 
          const Table *  | 
          dd_tab,  | 
         
        
           | 
           | 
          const TABLE *  | 
          td  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Drop an InnoDB table. 
- Template Parameters
 - 
  
    | Table | dd::Table or dd::Partition  | 
  
   
- Parameters
 - 
  
    | [in,out] | thd | THD object  | 
    | [in] | name | table name  | 
    | [in] | dd_tab | dd::Table describing table to be dropped  | 
    | [in] | td | MySQL table definition  | 
  
   
- Returns
 - error number 
 
- Return values
 - 
  
  
 
 
 
◆ rename_impl()
template<typename Table > 
  
  
      
        
          | int innobase_basic_ddl::rename_impl  | 
          ( | 
          THD *  | 
          thd,  | 
         
        
           | 
           | 
          const char *  | 
          from,  | 
         
        
           | 
           | 
          const char *  | 
          to,  | 
         
        
           | 
           | 
          const Table *  | 
          from_table,  | 
         
        
           | 
           | 
          const Table *  | 
          to_table,  | 
         
        
           | 
           | 
          const TABLE *  | 
          td  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Renames an InnoDB table. 
- Template Parameters
 - 
  
    | Table | dd::Table or dd::Partition  | 
  
   
- Parameters
 - 
  
    | [in,out] | thd | THD object  | 
    | [in] | from | old name of the table  | 
    | [in] | to | new name of the table  | 
    | [in] | from_table | dd::Table or dd::Partition of the table with old name  | 
    | [in] | to_table | dd::Table or dd::Partition of the table with new name  | 
    | [in] | td | MySQL table definition  | 
  
   
- Returns
 - error number 
 
- Return values
 - 
  
  
 
 
 
The documentation for this class was generated from the following files: