Skip to content

feat(sql-node-sqlite): add native node:sqlite support#6220

Open
hxx0215 wants to merge 1 commit intoEffect-TS:next-minorfrom
hxx0215:node-sqlite-support
Open

feat(sql-node-sqlite): add native node:sqlite support#6220
hxx0215 wants to merge 1 commit intoEffect-TS:next-minorfrom
hxx0215:node-sqlite-support

Conversation

@hxx0215
Copy link
Copy Markdown

@hxx0215 hxx0215 commented May 6, 2026

Type

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

This PR introduces the @effect/sql-sqlite-node-sqlite package to provide first-class support for the native node:sqlite module (the built-in DatabaseSync API available in Node.js 22.x+ and Deno 2.x+).
By leveraging the native node:sqlite module, this new adapter offers:

  • Seamless Deno & Node compatibility: Works out of the box in Deno 2.x+ and modern Node.js environments.

Known Limitation & Discussion

During testing, I noticed that the SQLite engine bundled within Node.js natively does not currently seem to be compiled with the SQLITE_ENABLE_UPDATE_DELETE_LIMIT option (unlike better-sqlite3 which compiles it manually).
So SqlPersistedQueue cannot work with this package properly. Could the upstream team please advise on how to handle this gracefully?

Related

  • Related Issue #
  • Closes #

@github-project-automation github-project-automation Bot moved this to Discussion Ongoing in PR Backlog May 6, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 6, 2026

🦋 Changeset detected

Latest commit: c49c9ce

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@effect/sql-sqlite-node-sqlite Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@hxx0215 hxx0215 changed the title feat(sql-node-sqlite): add native feat(sql-node-sqlite): add native node:sqlite support May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Discussion Ongoing

Development

Successfully merging this pull request may close these issues.

2 participants