Skip to content

New SQlite database options - #58697

Merged
nodejs-github-bot merged 11 commits into
nodejs:mainfrom
miguelmarcondesf:sqlite-db-options
Jun 24, 2025
Merged

New SQlite database options#58697
nodejs-github-bot merged 11 commits into
nodejs:mainfrom
miguelmarcondesf:sqlite-db-options

Conversation

@miguelmarcondesf

@miguelmarcondesfmiguelmarcondesf commented Jun 12, 2025

Copy link
Copy Markdown
Contributor

This introduces new SQLite database options that can be set at the database connection level.

cc @geeksilva97

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/sqlite

@nodejs-github-botnodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. labels Jun 12, 2025
@miguelmarcondesf
miguelmarcondesf marked this pull request as ready for review June 13, 2025 11:29
@codecov

codecovBot commented Jun 13, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 94.59459% with 4 lines in your changes missing coverage. Please review.

Project coverage is 90.11%. Comparing base (5457443) to head (5693d3c).
Report is 67 commits behind head on main.

Files with missing linesPatch %Lines
src/node_sqlite.cc92.00%0 Missing and 4 partials ⚠️
Additional details and impacted files
@@ Coverage Diff @@## main #58697 +/- ##
==========================================
+ Coverage 90.03% 90.11% +0.07% 
==========================================
Files 635 639 +4 Lines 187688 188262 +574 Branches 36761 36924 +163 ==========================================
+ Hits 168991 169654 +663 + Misses 11499 11326 -173 - Partials 7198 7282 +84 
Files with missing linesCoverage Δ
src/node_sqlite.h83.67% <100.00%> (+15.67%)⬆️
src/node_sqlite.cc81.06% <92.00%> (+0.26%)⬆️

... and 78 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.

@geeksilva97

geeksilva97 commented Jun 17, 2025

Copy link
Copy Markdown
Contributor

Since it's addressing a TODO comment, you need to remove it from the code. I was unable to see it

I'm wrong

Comment threadtest/parallel/test-sqlite-database-sync.js Outdated
Comment threadtest/parallel/test-sqlite-database-sync.js Outdated
@geeksilva97geeksilva97 added the sqlite Issues and PRs related to the SQLite subsystem. label Jun 18, 2025
@geeksilva97

Copy link
Copy Markdown
Contributor

There are a few tests I think we don't need because they are redundant, e.g., those that handle the default scenario. Here, for example, the default is false already, which is already covered.

Other than that, I think you addressed the left comments as expected. Thank you.

I will just ping @nodejs/cpp-reviewers to get a more experienced C++ review.

Comment threaddoc/api/sqlite.md Outdated
@RafaelGSSRafaelGSS added semver-minor PRs that contain new features and should be released in the next minor version. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Jun 18, 2025

@RafaelGSSRafaelGSS left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

cpp code LGTM.

Comment threadsrc/node_sqlite.cc Outdated
Comment threadsrc/node_sqlite.cc Outdated
Comment threadsrc/node_sqlite.cc Outdated
Comment threadsrc/node_sqlite.cc Outdated

@lemirelemire left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

My suggested changes are optional.

miguelmarcondesfand others added 2 commits June 18, 2025 12:28
Co-authored-by: Rafael Gonzaga <rafael.nunu@hotmail.com>
@nodejs-github-bot

This comment was marked as outdated.

@geeksilva97geeksilva97 added the request-ci Add this label to start a Jenkins CI on a PR. label Jun 20, 2025
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jun 20, 2025
@nodejs-github-bot

This comment was marked as outdated.

@geeksilva97geeksilva97 added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jun 20, 2025
@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@geeksilva97
geeksilva97 requested a review from cjihrigJune 23, 2025 13:37
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@geeksilva97geeksilva97 added commit-queue Add this label to land a pull request using GitHub Actions. and removed needs-ci PRs that need a full CI run. labels Jun 24, 2025
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jun 24, 2025
@nodejs-github-bot
nodejs-github-bot merged commit d08513d into nodejs:mainJun 24, 2025
36 checks passed
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in d08513d

targos pushed a commit that referenced this pull request Jul 3, 2025
PR-URL: #58697
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Daniel Lemire <daniel@lemire.me>
Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com>
nodejs-github-bot added a commit that referenced this pull request Jul 8, 2025
Notable changes:
crypto:
* (SEMVER-MINOR) support outputLength option in crypto.hash for XOF functions (Aditi) #58121
doc:
* (SEMVER-MINOR) add all watch-mode related flags to node.1 (Dario Piotrowicz) #58719
fs:
* (SEMVER-MINOR) add disposable mkdtempSync (Kevin Gibbons) #58516
permission:
* (SEMVER-MINOR) propagate permission model flags on spawn (Rafael Gonzaga) #58853
sqlite:
* (SEMVER-MINOR) add support for readBigInts option in db connection level (Miguel Marcondes Filho) #58697
src,permission:
* (SEMVER-MINOR) add support to permission.has(addon) (Rafael Gonzaga) #58951
watch:
* (SEMVER-MINOR) add `--watch-kill-signal` flag (Dario Piotrowicz) #58719
PR-URL: #58993
RafaelGSS pushed a commit that referenced this pull request Jul 9, 2025
Notable changes:
crypto:
* (SEMVER-MINOR) support outputLength option in crypto.hash for XOF functions (Aditi) #58121
doc:
* (SEMVER-MINOR) add all watch-mode related flags to node.1 (Dario Piotrowicz) #58719
fs:
* (SEMVER-MINOR) add disposable mkdtempSync (Kevin Gibbons) #58516
permission:
* (SEMVER-MINOR) propagate permission model flags on spawn (Rafael Gonzaga) #58853
sqlite:
* (SEMVER-MINOR) add support for readBigInts option in db connection level (Miguel Marcondes Filho) #58697
src,permission:
* (SEMVER-MINOR) add support to permission.has(addon) (Rafael Gonzaga) #58951
watch:
* (SEMVER-MINOR) add `--watch-kill-signal` flag (Dario Piotrowicz) #58719
PR-URL: #58993
aduh95 pushed a commit that referenced this pull request Jul 21, 2025
PR-URL: #58697
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Daniel Lemire <daniel@lemire.me>
Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com>
aduh95 pushed a commit that referenced this pull request Jul 24, 2025
PR-URL: #58697
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Daniel Lemire <daniel@lemire.me>
Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com>
aduh95 added a commit that referenced this pull request Jul 28, 2025
Notable changes:
deps:
* (SEMVER-MINOR) update amaro to 1.1.0 (Node.js GitHub Bot) #56350
doc:
* add islandryu to collaborators (Shima Ryuhei) #58714
esm:
* (SEMVER-MINOR) implement `import.meta.main` (Joe) #57804
fs:
* (SEMVER-MINOR) allow correct handling of burst in fs-events with AsyncIterator (Philipp Dunkel) #58490
module:
* (SEMVER-MINOR) remove experimental warning from type stripping (Marco Ippolito) #56350
* (SEMVER-MINOR) unflag `--experimental-strip-types` (Marco Ippolito) #56350
permission:
* (SEMVER-MINOR) propagate permission model flags on spawn (Rafael Gonzaga) #58853
sqlite:
* (SEMVER-MINOR) add support for `readBigInts` option in db connection level (Miguel Marcondes Filho) #58697
src,permission:
* (SEMVER-MINOR) add support to `permission.has(addon)` (Rafael Gonzaga) #58951
url:
* (SEMVER-MINOR) add `fileURLToPathBuffer` API (James M Snell) #58700
watch:
* (SEMVER-MINOR) add `--watch-kill-signal` flag (Dario Piotrowicz) #58719
worker:
* (SEMVER-MINOR) make `Worker` async disposable (James M Snell) #58385
PR-URL: #59256
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
aduh95 added a commit that referenced this pull request Jul 31, 2025
Notable changes:
deps:
* (SEMVER-MINOR) update amaro to 1.1.0 (Node.js GitHub Bot) #56350
doc:
* add islandryu to collaborators (Shima Ryuhei) #58714
esm:
* (SEMVER-MINOR) implement `import.meta.main` (Joe) #57804
fs:
* (SEMVER-MINOR) allow correct handling of burst in fs-events with AsyncIterator (Philipp Dunkel) #58490
module:
* (SEMVER-MINOR) remove experimental warning from type stripping (Marco Ippolito) #56350
* (SEMVER-MINOR) unflag `--experimental-strip-types` (Marco Ippolito) #56350
permission:
* (SEMVER-MINOR) propagate permission model flags on spawn (Rafael Gonzaga) #58853
sqlite:
* (SEMVER-MINOR) add support for `readBigInts` option in db connection level (Miguel Marcondes Filho) #58697
src,permission:
* (SEMVER-MINOR) add support to `permission.has(addon)` (Rafael Gonzaga) #58951
url:
* (SEMVER-MINOR) add `fileURLToPathBuffer` API (James M Snell) #58700
watch:
* (SEMVER-MINOR) add `--watch-kill-signal` flag (Dario Piotrowicz) #58719
worker:
* (SEMVER-MINOR) make `Worker` async disposable (James M Snell) #58385
PR-URL: #59256
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
aduh95 added a commit that referenced this pull request Jul 31, 2025
Notable changes:
deps:
* (SEMVER-MINOR) update amaro to 1.1.0 (Node.js GitHub Bot) #56350
doc:
* add islandryu to collaborators (Shima Ryuhei) #58714
esm:
* (SEMVER-MINOR) implement `import.meta.main` (Joe) #57804
fs:
* (SEMVER-MINOR) allow correct handling of burst in fs-events with AsyncIterator (Philipp Dunkel) #58490
module:
* (SEMVER-MINOR) remove experimental warning from type stripping (Marco Ippolito) #56350
* (SEMVER-MINOR) unflag `--experimental-strip-types` (Marco Ippolito) #56350
permission:
* (SEMVER-MINOR) propagate permission model flags on spawn (Rafael Gonzaga) #58853
sqlite:
* (SEMVER-MINOR) add support for `readBigInts` option in db connection level (Miguel Marcondes Filho) #58697
src,permission:
* (SEMVER-MINOR) add support to `permission.has(addon)` (Rafael Gonzaga) #58951
url:
* (SEMVER-MINOR) add `fileURLToPathBuffer` API (James M Snell) #58700
watch:
* (SEMVER-MINOR) add `--watch-kill-signal` flag (Dario Piotrowicz) #58719
worker:
* (SEMVER-MINOR) make `Worker` async disposable (James M Snell) #58385
PR-URL: #59256
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
mete0rfish pushed a commit to mete0rfish/node-contribute that referenced this pull request Aug 9, 2025
Notable changes:
deps:
* (SEMVER-MINOR) update amaro to 1.1.0 (Node.js GitHub Bot) nodejs#56350
doc:
* add islandryu to collaborators (Shima Ryuhei) nodejs#58714
esm:
* (SEMVER-MINOR) implement `import.meta.main` (Joe) nodejs#57804
fs:
* (SEMVER-MINOR) allow correct handling of burst in fs-events with AsyncIterator (Philipp Dunkel) nodejs#58490
module:
* (SEMVER-MINOR) remove experimental warning from type stripping (Marco Ippolito) nodejs#56350
* (SEMVER-MINOR) unflag `--experimental-strip-types` (Marco Ippolito) nodejs#56350
permission:
* (SEMVER-MINOR) propagate permission model flags on spawn (Rafael Gonzaga) nodejs#58853
sqlite:
* (SEMVER-MINOR) add support for `readBigInts` option in db connection level (Miguel Marcondes Filho) nodejs#58697
src,permission:
* (SEMVER-MINOR) add support to `permission.has(addon)` (Rafael Gonzaga) nodejs#58951
url:
* (SEMVER-MINOR) add `fileURLToPathBuffer` API (James M Snell) nodejs#58700
watch:
* (SEMVER-MINOR) add `--watch-kill-signal` flag (Dario Piotrowicz) nodejs#58719
worker:
* (SEMVER-MINOR) make `Worker` async disposable (James M Snell) nodejs#58385
PR-URL: nodejs#59256
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.c++Issues and PRs that require attention from people who are familiar with C++.commit-queue-squashAdd this label to instruct the Commit Queue to squash all the PR commits into the first one.lib / srcIssues and PRs related to general changes in the lib or src directory.semver-minorPRs that contain new features and should be released in the next minor version.sqliteIssues and PRs related to the SQLite subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@miguelmarcondesf@nodejs-github-bot@geeksilva97@lemire@RafaelGSS