Skip to content

sqlite: throw ERR_NO_SQLITE without SQLite support - #67727

Open
christianaurichzm wants to merge 1 commit into
nodejs:mainfrom
christianaurichzm:sqlite-err-no-sqlite
Open

christianaurichzm wants to merge 1 commit into
nodejs:mainfrom
christianaurichzm:sqlite-err-no-sqlite

Conversation

@christianaurichzm

@christianaurichzm christianaurichzm commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Split out of #67698 so it can be backported, as @aduh95 asked there.

In builds configured --without-sqlite, passing --experimental-sqlite exposes node:sqlite, and loading it then fails with No such binding: sqlite. This makes it throw the new ERR_NO_SQLITE instead, like node:crypto does without OpenSSL. The flag stays off by default in those builds, and builds with SQLite don't change.

Building --without-sqlite with the inspector enabled also needs #67722.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/config
  • @nodejs/sqlite

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. config Issues and PRs related to Node.js configuration and feature settings. errors Issues and PRs related to JavaScript errors originating in Node.js core. needs-ci PRs that need a full CI run. sqlite Issues and PRs related to the SQLite subsystem. labels Nov 23, 2026
@christianaurichzm christianaurichzm added semver-minor PRs that contain new features and should be released in the next minor version. lts-watch-v26.x PRs that may need to be released in v26.x. and removed c++ Issues and PRs that require attention from people who are familiar with C++. errors Issues and PRs related to JavaScript errors originating in Node.js core. needs-ci PRs that need a full CI run. config Issues and PRs related to Node.js configuration and feature settings. labels Nov 23, 2026
@christianaurichzm christianaurichzm added c++ Issues and PRs that require attention from people who are familiar with C++. config Issues and PRs related to Node.js configuration and feature settings. errors Issues and PRs related to JavaScript errors originating in Node.js core. needs-ci PRs that need a full CI run. labels Nov 23, 2026
Comment thread src/node_options.cc Resolved
In builds configured --without-sqlite, passing --experimental-sqlite
exposes node:sqlite, and loading it then fails with
"No such binding: sqlite". Throw ERR_NO_SQLITE instead, like
node:crypto does without OpenSSL.

Signed-off-by: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
@christianaurichzm christianaurichzm removed c++ Issues and PRs that require attention from people who are familiar with C++. config Issues and PRs related to Node.js configuration and feature settings. labels Nov 23, 2026
@aduh95 aduh95 added c++ Issues and PRs that require attention from people who are familiar with C++. request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. lts-watch-v22.x PRs that may need to be released in v22.x config Issues and PRs related to Node.js configuration and feature settings. lts-watch-v24.x PRs that may need to be released in v24.x labels Nov 23, 2026
@christianaurichzm christianaurichzm removed the c++ Issues and PRs that require attention from people who are familiar with C++. label Nov 23, 2026
@christianaurichzm christianaurichzm removed the config Issues and PRs related to Node.js configuration and feature settings. label Nov 23, 2026
@aduh95 aduh95 added c++ Issues and PRs that require attention from people who are familiar with C++. author ready PRs with CI started, the required approvals, and no outstanding review comments. config Issues and PRs related to Node.js configuration and feature settings. and removed c++ Issues and PRs that require attention from people who are familiar with C++. config Issues and PRs related to Node.js configuration and feature settings. labels Nov 23, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Nov 23, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@codecov

codecov Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 62.50000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.55%. Comparing base (1ad01d3) to head (b88542b).
⚠️ Report is 15 commits behind head on main.

Files with missing lines Patch % Lines
lib/sqlite.js 50.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #67727   +/-   ##
=======================================
  Coverage   90.55%   90.55%           
=======================================
  Files         801      801           
  Lines      284215   284223    +8     
  Branches    54887    54880    -7     
=======================================
+ Hits       257369   257391   +22     
- Misses      17015    17016    +1     
+ Partials     9831     9816   -15     
Files with missing lines Coverage Δ
lib/internal/errors.js 98.12% <100.00%> (+<0.01%) ⬆️
lib/sqlite.js 87.50% <50.00%> (-12.50%) ⬇️

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

@christianaurichzm christianaurichzm added the commit-queue PRs queued for automated landing through the Commit Queue. label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. commit-queue PRs queued for automated landing through the Commit Queue. errors Issues and PRs related to JavaScript errors originating in Node.js core. lts-watch-v22.x PRs that may need to be released in v22.x lts-watch-v24.x PRs that may need to be released in v24.x lts-watch-v26.x PRs that may need to be released in v26.x. needs-ci PRs that need a full CI run. semver-minor PRs that contain new features and should be released in the next minor version. sqlite Issues and PRs related to the SQLite subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants