Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

Renegade334
Copy link
Contributor

@Renegade334 Renegade334 commented Oct 13, 2025

As implemented, .db and .capacity are getters, and .size is a callable method. There's no reason for this inconsistency, so change .size to a getter.

Drive-by changes while making alterations to the class template: the FunctionCallbackInfo parameter for SQLTagStore member functions was variably labelled args or info, and wasn't consistent with the header either. Use the canonical args.

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/sqlite

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. sqlite Issues and PRs related to the SQLite subsystem. labels Oct 13, 2025
Copy link
Contributor

@cjihrig cjihrig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but all of the stylistic changes should really be made separately.

doc/api/sqlite.md Outdated Show resolved Hide resolved
@Renegade334 Renegade334 force-pushed the sqlite-tagstore-size-getter branch from dabca78 to 3142319 Compare October 13, 2025 15:23
@Renegade334
Copy link
Contributor Author

Renegade334 commented Oct 13, 2025

LGTM, but all of the stylistic changes should really be made separately.

I'm already half-addressing them de facto with the main change, but these can be spun out if desired.

Edit: Spun out the other doc changes.

Copy link

codecov bot commented Oct 13, 2025

Codecov Report

❌ Patch coverage is 80.95238% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.55%. Comparing base (5cf3c3e) to head (a2eaaa0).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
src/node_sqlite.cc 80.95% 0 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #60246      +/-   ##
==========================================
- Coverage   88.56%   88.55%   -0.02%     
==========================================
  Files         704      704              
  Lines      208146   208155       +9     
  Branches    40009    40027      +18     
==========================================
- Hits       184354   184338      -16     
- Misses      15814    15824      +10     
- Partials     7978     7993      +15     
Files with missing lines Coverage Δ
src/node_sqlite.h 80.39% <ø> (ø)
src/node_sqlite.cc 80.14% <80.95%> (-0.01%) ⬇️

... and 29 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Renegade334 Renegade334 force-pushed the sqlite-tagstore-size-getter branch from 3142319 to ff66727 Compare October 13, 2025 20:17
Drive-by: make callback `args` parameter names consistent
@Renegade334 Renegade334 force-pushed the sqlite-tagstore-size-getter branch from ff66727 to a2eaaa0 Compare October 13, 2025 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. sqlite Issues and PRs related to the SQLite subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.