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

Copy link
Copy Markdown
Member

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

Builds configured --without-sqlite hide node:sqlite, because --experimental-sqlite defaults to false there. This makes the flag default to true in every build and has node:sqlite throw the new ERR_NO_SQLITE when it's loaded, like node:crypto does without OpenSSL. --no-experimental-sqlite still hides the module, and builds with SQLite don't change.

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

Builds configured --without-sqlite hide node:sqlite because
--experimental-sqlite defaults to false there. Make the flag default to
true in every build and throw ERR_NO_SQLITE when the module is loaded
without SQLite, like node:crypto does without OpenSSL.

Signed-off-by: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lts-watch-v26.x PRs that may need to be released in v26.x. 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.

2 participants