-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(rows): doesn't close rows on Scan #49
Conversation
Reviewer's Guide by SourceryThis PR fixes a bug where database rows were being automatically closed during Scan operations. The implementation removes the deferred Close() call in the Scan method, allowing users to manage row closure explicitly. The change is verified through a new test case that demonstrates multiple Scan operations on the same rows object. Sequence diagram for Scan operation without automatic row closuresequenceDiagram
actor User
participant Rows
participant Database
User->>Rows: Call Scan(dest)
Rows->>Database: Execute Scan
Database-->>Rows: Return data
Rows-->>User: Return data
note right of User: User decides when to call Close()
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @cnlangzi - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Here's the code health analysis summary for commits Analysis Summary
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #49 +/- ##
==========================================
- Coverage 77.12% 75.71% -1.41%
==========================================
Files 46 46
Lines 1884 2368 +484
==========================================
+ Hits 1453 1793 +340
- Misses 306 456 +150
+ Partials 125 119 -6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Fixes
Scan
, leave it to close by user.Summary by Sourcery
Fix the premature closing of rows in the Scan method and add a test to verify correct scanning behavior.
Bug Fixes:
Tests: