Bdb.php 1.7 KB

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