Skip to content

Commit fdbfded

Browse files
committed
chore: prepare release v2.11.1
- Update CHANGELOG.md with v2.11.1 release notes - Update CLI version to 2.11.1 - Update Unreleased link to point to v2.11.1...HEAD
1 parent 70fdb8f commit fdbfded

File tree

2 files changed

+78
-3
lines changed

2 files changed

+78
-3
lines changed

CHANGELOG.md

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,80 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [2.11.1] - 2025-12-02
11+
12+
### Added
13+
- **Interactive TUI Dashboard** - Real-time database monitoring with full-screen terminal interface:
14+
- Monitor active queries, connection pool, cache statistics, and server metrics
15+
- View query details with full query text, execution time, user, and database
16+
- Kill long-running queries with a single keystroke
17+
- Keyboard navigation with pane switching, scrolling, and fullscreen mode
18+
- Real-time refresh with configurable intervals (realtime, 0.5s, 1s, 2s, 5s)
19+
- Color-coded metrics for performance visualization
20+
- Launch with `pdodb ui` command
21+
22+
- **Code Generation Command** (`pdodb generate`):
23+
- `pdodb generate api` - Generate API controller classes
24+
- `pdodb generate tests` - Generate test files
25+
- `pdodb generate dto` - Generate Data Transfer Object classes
26+
- `pdodb generate enum` - Generate enum classes
27+
- `pdodb generate docs` - Generate documentation files
28+
- `pdodb generate model` - Generate ActiveRecord model classes
29+
- `pdodb generate repository` - Generate repository classes
30+
- `pdodb generate service` - Generate service classes
31+
- All generated namespaces are automatically converted to lowercase
32+
33+
- **Benchmark Command** (`pdodb benchmark`):
34+
- `pdodb benchmark query` - Benchmark SQL query performance
35+
- `pdodb benchmark crud` - Benchmark CRUD operations
36+
- `pdodb benchmark load` - Load testing with multiple connections
37+
- `pdodb benchmark profile` - Query profiling with detailed statistics
38+
- `pdodb benchmark compare` - Compare query performance
39+
40+
- **Version Command** (`pdodb version`):
41+
- Show application version information
42+
- `--version` / `-v` flag support for all commands
43+
44+
- **Index Suggestion Command** (`pdodb table suggest-indexes <table>`):
45+
- Analyze table queries and suggest optimal indexes
46+
- Help optimize database performance
47+
48+
- **Oracle-Specific Helper Functions**:
49+
- `Db::toTs()` - Convert value to Oracle TIMESTAMP
50+
- `Db::toDate()` - Convert value to Oracle DATE
51+
- `Db::toChar()` - Convert value to Oracle CHAR/VARCHAR2
52+
53+
- **IDE Autocompletion Support**:
54+
- Enhanced IDE autocompletion for `Model::find()` method
55+
- Improved type hints and documentation
56+
57+
- **Event System Enhancements**:
58+
- Added missing events to event system for better monitoring and auditing
59+
60+
- **CLI Improvements**:
61+
- "Did you mean?" command suggestions for typos
62+
- Help messages for generate subcommands when required parameters are missing
63+
64+
### Changed
65+
- **Code Generation**:
66+
- All generated namespaces are now automatically converted to lowercase for consistency
67+
68+
### Fixed
69+
- Fixed loading .env file before checking PDODB_DRIVER in connection list command
70+
- Fixed parsing command line options without equals sign (e.g., `--option=value` and `--option value`)
71+
- Fixed Oracle type helpers example and PHPStan errors
72+
- Fixed benchmark command tests to use correct path to pdodb binary
73+
- Added warning when --query is not specified for benchmark compare command
74+
- Improved test reliability: skip user creation tests when privileges are missing
75+
76+
### Documentation
77+
- Improved IDE autocompletion documentation
78+
- Clarified PHPStan ignore comments in PdoDb::fromEnv method
79+
80+
### Tests
81+
- Added comprehensive tests for Oracle-specific helpers and exception handling
82+
- Improved benchmark command tests with better error handling
83+
1084
## [2.11.0] - 2025-11-28
1185

1286
### Added
@@ -1823,7 +1897,8 @@ Initial tagged release with basic PDO database abstraction functionality.
18231897

18241898
---
18251899

1826-
[Unreleased]: https://github.com/tommyknocker/pdo-database-class/compare/v2.11.0...HEAD
1900+
[Unreleased]: https://github.com/tommyknocker/pdo-database-class/compare/v2.11.1...HEAD
1901+
[2.11.1]: https://github.com/tommyknocker/pdo-database-class/compare/v2.11.0...v2.11.1
18271902
[2.11.0]: https://github.com/tommyknocker/pdo-database-class/compare/v2.10.3...v2.11.0
18281903
[2.10.3]: https://github.com/tommyknocker/pdo-database-class/compare/v2.10.2...v2.10.3
18291904
[2.10.2]: https://github.com/tommyknocker/pdo-database-class/compare/v2.10.1...v2.10.2

src/cli/Application.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ protected function detectVersion(): string
263263
}
264264

265265
// Ultimate fallback
266-
return '2.11.0';
266+
return '2.11.1';
267267
}
268268

269269
/**
@@ -273,7 +273,7 @@ protected function detectVersion(): string
273273
*/
274274
public function getVersion(): string
275275
{
276-
return $this->version ?? '2.11.0';
276+
return $this->version ?? '2.11.1';
277277
}
278278

279279
/**

0 commit comments

Comments
 (0)