chore: [#585] update db config to use proper casing for DB server names#853
chore: [#585] update db config to use proper casing for DB server names#853
Conversation
WalkthroughThis pull request streamlines how database information is gathered in the console. In the main command file, the databaseInfo struct now includes a new OpenConnections field and a Name field set from the driver, with the Version field repositioned. The retrieval of database details in the Handle method is simplified by directly fetching the DB connection and its statistics. Test files are updated to reflect these changes by including new configuration parameters and simplifying mock expectations. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant ShowCommand
participant Schema
participant ORM
participant Database
Client->>ShowCommand: Execute Show Command
ShowCommand->>Schema: Request ORM instance
Schema->>ORM: Return ORM instance
ShowCommand->>ORM: Get DB connection (DB())
ORM->>Database: Provide connection
Database-->>ORM: Return connection stats
ShowCommand->>Client: Return database details (Name, Version, OpenConnections, Tables, Views)
Possibly related PRs
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🔇 Additional comments (4)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #853 +/- ##
=======================================
Coverage 67.22% 67.22%
=======================================
Files 150 150
Lines 10449 10449
=======================================
Hits 7024 7024
Misses 3052 3052
Partials 373 373 ☔ View full report in Codecov by Sentry. |
📑 Description
Closes goravel/goravel#585
Close goravel/goravel#573
Summary by CodeRabbit
✅ Checks