-
Notifications
You must be signed in to change notification settings - Fork 31.3k
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
sqlite,src: refactor sqlite value conversion #57571
sqlite,src: refactor sqlite value conversion #57571
Conversation
Review requested:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #57571 +/- ##
==========================================
- Coverage 90.23% 90.23% -0.01%
==========================================
Files 629 630 +1
Lines 184903 185009 +106
Branches 36223 36221 -2
==========================================
+ Hits 166853 166944 +91
- Misses 11010 11038 +28
+ Partials 7040 7027 -13
🚀 New features to boost your workflow:
|
Is this "returning function body macro" paradigm used elsewhere? Appreciate the rationale, but it seems like it lends potential for future mishaps? |
For this, specifically, I don't think so. This type conversion is unlikely to change. We need to find a way to isolate this anyways since it's being required more and more. |
6cf644e
to
2611aa7
Compare
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.
LGTM with one minor comment.
Failed to start CI⚠ Commits were pushed since the last approving review: ⚠ - sqlite,src: refactor sqlite value conversion ⚠ - fixup: apply review suggestions ⚠ - sqlite,src: improve conversion macro ✘ Refusing to run CI on potentially unsafe PRhttps://github.com/nodejs/node/actions/runs/14195007818 |
Failed to start CI⚠ Commits were pushed since the last approving review: ⚠ - sqlite,src: refactor sqlite value conversion ⚠ - fixup: apply review suggestions ⚠ - sqlite,src: improve conversion macro ✘ Refusing to run CI on potentially unsafe PRhttps://github.com/nodejs/node/actions/runs/14196415493 |
Landed in 8360ce2 |
PR-URL: nodejs#57571 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
This PR is a minor refactor on converting SQLite values to JS. It makes the work for #56600 easier and reduces duplication.