Conversation
…not reset when Booting (#1162) * fix: The configuredServiceProviders, publishes and publishGroups are not reset when Booting * optimize
There was a problem hiding this comment.
Pull Request Overview
This PR merges version 1.16.3, bringing several enhancements to the database ORM functionality including a new SelectRaw method for raw SQL queries, improved transaction error handling with panic recovery, and fixes for missing database columns.
- Added SelectRaw method to ORM Query interface for raw SQL query support
- Enhanced transaction methods with panic recovery and proper error handling
- Fixed database column mapping issues by enabling unsafe mode in sqlx
- Added comprehensive test coverage for new functionality
Reviewed Changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| support/constant.go | Updates version from v1.16.0 to v1.16.3 |
| contracts/database/orm/orm.go | Adds SelectRaw method to Query interface |
| database/gorm/query.go | Implements SelectRaw functionality and updates select column building |
| database/gorm/conditions.go | Adds Select struct for raw query support |
| database/orm/orm.go | Enhances Transaction method with panic recovery |
| database/db/db.go | Enhances Transaction method with panic recovery |
| database/db/builder.go | Enables unsafe mode in sqlx for missing column handling |
| mocks/database/orm/Query.go | Adds mock implementation for SelectRaw method |
| errors/errors.go | Adds Join function for error combination |
| tests/query_test.go | Adds comprehensive test for SelectRaw functionality |
| tests/orm_test.go | Adds test for transaction panic handling |
| tests/db_test.go | Adds tests for missing columns and transaction panic handling |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1204 +/- ##
==========================================
- Coverage 68.73% 68.73% -0.01%
==========================================
Files 232 232
Lines 15102 15104 +2
==========================================
Hits 10381 10381
- Misses 4361 4363 +2
Partials 360 360 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
📑 Description
✅ Checks