Bdb.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * The BDB storage engine
  5. *
  6. * @package PhpMyAdmin-Engines
  7. */
  8. declare(strict_types=1);
  9. namespace PhpMyAdmin\Engines;
  10. use PhpMyAdmin\StorageEngine;
  11. /**
  12. * The BDB storage engine
  13. *
  14. * @package PhpMyAdmin-Engines
  15. */
  16. class Bdb extends StorageEngine
  17. {
  18. /**
  19. * Returns array with variable names related to this storage engine
  20. *
  21. * @return array variable names
  22. */
  23. public function getVariables()
  24. {
  25. return [
  26. 'version_bdb' => [
  27. 'title' => __('Version information'),
  28. ],
  29. 'bdb_cache_size' => [
  30. 'type' => PMA_ENGINE_DETAILS_TYPE_SIZE,
  31. ],
  32. 'bdb_home' => [],
  33. 'bdb_log_buffer_size' => [
  34. 'type' => PMA_ENGINE_DETAILS_TYPE_SIZE,
  35. ],
  36. 'bdb_logdir' => [],
  37. 'bdb_max_lock' => [
  38. 'type' => PMA_ENGINE_DETAILS_TYPE_NUMERIC,
  39. ],
  40. 'bdb_shared_data' => [],
  41. 'bdb_tmpdir' => [],
  42. 'bdb_data_direct' => [],
  43. 'bdb_lock_detect' => [],
  44. 'bdb_log_direct' => [],
  45. 'bdb_no_recover' => [],
  46. 'bdb_no_sync' => [],
  47. 'skip_sync_bdb_logs' => [],
  48. 'sync_bdb_logs' => [],
  49. ];
  50. }
  51. /**
  52. * Returns the pattern to be used in the query for SQL variables
  53. * related to this storage engine
  54. *
  55. * @return string LIKE pattern
  56. */
  57. public function getVariablesLikePattern()
  58. {
  59. return '%bdb%';
  60. }
  61. /**
  62. * returns string with filename for the MySQL helppage
  63. * about this storage engine
  64. *
  65. * @return string mysql helppage filename
  66. */
  67. public function getMysqlHelpPage()
  68. {
  69. return 'bdb';
  70. }
  71. }