v2.11.1
Release v2.11.1
π Major Features
π₯οΈ Interactive TUI Dashboard
Real-time database monitoring with a beautiful full-screen terminal interface! Monitor active queries, connection pool, cache statistics, and server metrics in real-time.
Features:
- Monitor active queries with full query text, execution time, user, and database
- Kill long-running queries with a single keystroke
- Keyboard navigation with pane switching, scrolling, and fullscreen mode
- Real-time refresh with configurable intervals (realtime, 0.5s, 1s, 2s, 5s)
- Color-coded metrics for performance visualization
Launch: pdodb ui
π Code Generation Command
New pdodb generate command with multiple subcommands for rapid development:
pdodb generate api- Generate API controller classespdodb generate tests- Generate test filespdodb generate dto- Generate Data Transfer Object classespdodb generate enum- Generate enum classespdodb generate docs- Generate documentation filespdodb generate model- Generate ActiveRecord model classespdodb generate repository- Generate repository classespdodb generate service- Generate service classes
β‘ Benchmark Command
Comprehensive performance testing tools:
pdodb benchmark query- Benchmark SQL query performancepdodb benchmark crud- Benchmark CRUD operationspdodb benchmark load- Load testing with multiple connectionspdodb benchmark profile- Query profiling with detailed statisticspdodb benchmark compare- Compare query performance
β¨ New Features
- Version Command -
pdodb versionand--version/-vflag support - Index Suggestion -
pdodb table suggest-indexes <table>to optimize database performance - Oracle Helpers - New
Db::toTs(),Db::toDate(), andDb::toChar()functions - IDE Autocompletion - Enhanced autocompletion for
Model::find()method - CLI Improvements - "Did you mean?" command suggestions for typos
- Event System - Added missing events for better monitoring and auditing
π§ Improvements
- All generated namespaces are now automatically converted to lowercase for consistency
π Bug Fixes
- Fixed loading .env file before checking PDODB_DRIVER in connection list command
- Fixed parsing command line options without equals sign (
--option=valueand--option value) - Fixed Oracle type helpers example and PHPStan errors
- Fixed benchmark command tests to use correct path to pdodb binary
- Added warning when --query is not specified for benchmark compare command
- Improved test reliability: skip user creation tests when privileges are missing
π Documentation
- Improved IDE autocompletion documentation
- Clarified PHPStan ignore comments in PdoDb::fromEnv method
π§ͺ Tests
- Added comprehensive tests for Oracle-specific helpers and exception handling
- Improved benchmark command tests with better error handling
Full Changelog: v2.11.0...v2.11.1