nextcloud/tests
Rodrigo Correia 729e1e6920 feat(db): add occ db:info, db:size, db:index-usage and db:locks
Implements RFC #59422. Adds four read-only diagnostic commands to
the occ CLI for administrators to inspect database health without
needing external tools:

- db:info: shows engine version and key config variables with
  health check against recommended values
- db:size: lists all tables ordered by total disk usage
- db:index-usage: reports unused indexes via performance_schema
  (MySQL) or pg_stat_user_indexes (PostgreSQL)
- db:locks: detects active blocking transactions and deadlocks

All commands support MySQL/MariaDB and PostgreSQL. A --json flag
is available for automated parsing. Includes 31 unit tests.

Closes #59422
Signed-off-by: Rodrigo Correia <rodrigo.mendes.correia@tecnico.ulisboa.pt>
Signed-off-by: Carolina Quinteiro <carolinafquinteiro@tecnico.ulisboa.pt>
Co-authored-by: Carolina Quinteiro <carolinafquinteiro@tecnico.ulisboa.pt>
2026-05-27 13:37:40 +01:00
..
apps chore: Add SPDX header 2024-05-13 17:41:36 +02:00
blueprints chore: split frontend building into legacy Vue 2 and Vue 3 2025-10-22 17:10:28 +02:00
Core feat(db): add occ db:info, db:size, db:index-usage and db:locks 2026-05-27 13:37:40 +01:00
data Merge pull request #57480 from iasdeoupxe/mimetypes 2026-01-26 08:22:50 +01:00
docker chore: Add SPDX header 2024-05-13 17:41:36 +02:00
lib refactor: Apply rector changes 2026-03-22 14:45:16 +00:00
objectstore chore: Add SPDX header 2024-05-22 19:58:12 +02:00
autoload.php chore: Add an autoload.php file for tests relying on core class 2025-05-19 11:30:37 +02:00
bootstrap.php test: add env option to disable loading all installed apps during tests 2025-08-11 13:35:57 +02:00
databases-all-config.php feat(rector): Enable SafeDeclareStrictTypesRector 2026-02-09 10:59:31 +01:00
drone-run-php-tests.sh chore: Add SPDX header 2024-05-13 17:41:36 +02:00
drone-wait-objectstore.sh chore: Add SPDX header 2024-05-13 17:41:36 +02:00
enable_all.php chore: Replace last calls to OC_App::enable by IAppManager 2025-08-18 17:09:39 +02:00
phpunit-autotest-external.xml ci: Migrate PHPUnit configs 2025-06-06 14:36:31 +02:00
phpunit-autotest.xml ci: Migrate PHPUnit configs 2025-06-06 14:36:31 +02:00
preseed-config.php feat(rector): Enable SafeDeclareStrictTypesRector 2026-02-09 10:59:31 +01:00
redis-cluster.config.php feat(rector): Enable SafeDeclareStrictTypesRector 2026-02-09 10:59:31 +01:00
redis.config.php feat(rector): Enable SafeDeclareStrictTypesRector 2026-02-09 10:59:31 +01:00
startsessionlistener.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00