"Fossies" - the Fresh Open Source Software Archive

Member "phpMyAdmin-5.1.0-english/libraries/classes/Engines/Myisam.php" (24 Feb 2021, 3230 Bytes) of package /linux/www/phpMyAdmin-5.1.0-english.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "Myisam.php" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 5.0.4-english_vs_5.1.0-english.

    1 <?php
    2 /**
    3  * The MyISAM storage engine
    4  */
    5 
    6 declare(strict_types=1);
    7 
    8 namespace PhpMyAdmin\Engines;
    9 
   10 use PhpMyAdmin\StorageEngine;
   11 
   12 /**
   13  * The MyISAM storage engine
   14  */
   15 class Myisam extends StorageEngine
   16 {
   17     /**
   18      * Returns array with variable names dedicated to MyISAM storage engine
   19      *
   20      * @return array   variable names
   21      */
   22     public function getVariables()
   23     {
   24         return [
   25             'myisam_data_pointer_size'        => [
   26                 'title' => __('Data pointer size'),
   27                 'desc'  => __(
   28                     'The default pointer size in bytes, to be used by CREATE TABLE '
   29                     . 'for MyISAM tables when no MAX_ROWS option is specified.'
   30                 ),
   31                 'type'  => PMA_ENGINE_DETAILS_TYPE_SIZE,
   32             ],
   33             'myisam_recover_options'          => [
   34                 'title' => __('Automatic recovery mode'),
   35                 'desc'  => __(
   36                     'The mode for automatic recovery of crashed MyISAM tables, as '
   37                     . 'set via the --myisam-recover server startup option.'
   38                 ),
   39             ],
   40             'myisam_max_sort_file_size'       => [
   41                 'title' => __('Maximum size for temporary sort files'),
   42                 'desc'  => __(
   43                     'The maximum size of the temporary file MySQL is allowed to use '
   44                     . 'while re-creating a MyISAM index (during REPAIR TABLE, ALTER '
   45                     . 'TABLE, or LOAD DATA INFILE).'
   46                 ),
   47                 'type'  => PMA_ENGINE_DETAILS_TYPE_SIZE,
   48             ],
   49             'myisam_max_extra_sort_file_size' => [
   50                 'title' => __('Maximum size for temporary files on index creation'),
   51                 'desc'  => __(
   52                     'If the temporary file used for fast MyISAM index creation '
   53                     . 'would be larger than using the key cache by the amount '
   54                     . 'specified here, prefer the key cache method.'
   55                 ),
   56                 'type'  => PMA_ENGINE_DETAILS_TYPE_SIZE,
   57             ],
   58             'myisam_repair_threads'           => [
   59                 'title' => __('Repair threads'),
   60                 'desc'  => __(
   61                     'If this value is greater than 1, MyISAM table indexes are '
   62                     . 'created in parallel (each index in its own thread) during '
   63                     . 'the repair by sorting process.'
   64                 ),
   65                 'type'  => PMA_ENGINE_DETAILS_TYPE_NUMERIC,
   66             ],
   67             'myisam_sort_buffer_size'         => [
   68                 'title' => __('Sort buffer size'),
   69                 'desc'  => __(
   70                     'The buffer that is allocated when sorting MyISAM indexes '
   71                     . 'during a REPAIR TABLE or when creating indexes with CREATE '
   72                     . 'INDEX or ALTER TABLE.'
   73                 ),
   74                 'type'  => PMA_ENGINE_DETAILS_TYPE_SIZE,
   75             ],
   76             'myisam_stats_method'             => [],
   77             'delay_key_write'                 => [],
   78             'bulk_insert_buffer_size'         => ['type' => PMA_ENGINE_DETAILS_TYPE_SIZE],
   79             'skip_external_locking'           => [],
   80         ];
   81     }
   82 }