nextcloud/tests/Core/Command
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 refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
Config chore: Fix all method calls with too many arguments 2025-07-22 12:34:49 +02:00
Db feat(db): add occ db:info, db:size, db:index-usage and db:locks 2026-05-27 13:37:40 +01:00
Encryption feat(encryption): Support running decrypt-all when encryption is already disabled 2025-12-16 11:09:46 +01:00
Group chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
Log chore: run rector 2025-07-01 22:45:52 +02:00
Maintenance chore: run rector 2025-07-01 22:45:52 +02:00
Preview fix(preview-cleanup): Also delete previews stored in the oc_previews table 2025-12-10 13:49:24 +01:00
SystemTag chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
TaskProcessing fix: Apply suggestions from code review 2026-03-19 11:14:26 +01:00
TwoFactorAuth refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
User refactor: use IEmailValidator.isValid instead of IMailer.validateEmailAddress 2025-10-04 21:54:22 +02:00