GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — stabilization of node:sqlite module · Issue #57445 · nodejs/node

stabilization of node:sqlite module #57445

New issue
Copy link
New issue
Copy link
Closed
Closed
stabilization of node:sqlite module#57445
Copy link
Labels
never-staleIssues and PRs exempt from automated stale handling.sqliteIssues and PRs related to the SQLite subsystem.

Description

@everett1992
everett1992
opened on Mar 13, 2025
Issue body actions

What is the problem this feature will solve?

I couldn't find any issues tracking the stabalization of the node:sqlite module. Built in sqlite support will remove the need for native modules which complicate build and distribution.

What is the feature you are proposing to solve the problem?

Eventually stabilizing test sqlite

What alternatives have you considered?

No response

Reacted by Trivikram Kamat, George Fu, sid, Jurj Andrei George, Coltin Kifer, kaspar poland, TANIGUCHI Masaya, Michael Kriese, Roscoe Rubin-Rottenberg, Daniel Mittereder and 4 more

Activity

  1. everett1992
    added
    feature requestIssues requesting new Node.js features.
    on Mar 13, 2025
  2. github-project-automation
    added this to Node.js feature requestson Mar 13, 2025
  3. github-project-automation
    moved this to Awaiting Triage in Node.js feature requestson Mar 13, 2025
  4. cjihrig commented on Mar 13, 2025

    @cjihrig
    cjihrig
    on Mar 13, 2025
    Contributor
    More actions

    node:sqlite is already unflagged. I would be supportive of dropping the experimental warning as well.

    As far as officially stabilizing the module goes, I think there is still some work to do. I think targeting Node v25 in October could be a realistic goal, but there aren't a lot of people working on the effort. Another hurdle is a lack of reviews from collaborators - things move slowly when it takes roughly a week to get changes merged.

  5. everett1992 commented on Mar 13, 2025

    @everett1992
    everett1992
    on Mar 13, 2025
    ContributorAuthor
    More actions

    Is there a rough list of what needs done before it can be marked stable?
    I'd be happy to review or contribute.

    If it's not stable by v24 could it be backported to 24 (and ideally older versions). One of the reasons I want this stabilized soon is so it can be used by libraries / apps with lower minimum supported node versions.

  6. jasnell commented on Mar 13, 2025

    @jasnell
    jasnell
    on Mar 13, 2025
    Member
    More actions

    Another hurdle is a lack of reviews from collaborators - things move slowly when it takes roughly a week to get changes merged...

    These are not always readily visible. If there are specific PRs please tag me and I'll be happy to review.

    Reacted by Colin Ihrig
  7. marco-ippolito
    changed the title [-]stabalization of node:sqlite module[/-] [+]stabilization of node:sqlite module[/+] on Mar 14, 2025
  8. cjihrig commented on Mar 14, 2025

    @cjihrig
    cjihrig
    on Mar 14, 2025
    Contributor
    More actions

    Is there a rough list of what needs done before it can be marked stable?

    Not exactly. There are currently some open issues and PRs. Some (not all) of those need to be resolved. I know that @billywhizz had mentioned some potential performance optimizations as well that I think would be good to explore.

    If it's not stable by v24 could it be backported to 24

    I don't see it making the v24.0.0 cutoff, but it could likely be backported.

    Reacted by Andrew Johnston and Trivikram Kamat
  9. billywhizz commented on Mar 14, 2025

    @billywhizz
    billywhizz
    on Mar 14, 2025
    Contributor
    More actions

    i can take a look at any work that is outstanding over next few days and can hopefully help with any effort to stabilize this going forward.

  10. cjihrig
    added
    sqliteIssues and PRs related to the SQLite subsystem.
    on Apr 5, 2025
  11. anonrig commented on Apr 7, 2025

    @anonrig
    anonrig
    on Apr 7, 2025
    Member
    More actions

    Another hurdle is a lack of reviews from collaborators - things move slowly when it takes roughly a week to get changes merged.

    @cjihrig Would you mind tagging me in such PRs? Happy to review.

    Reacted by Colin Ihrig and Jurj Andrei George
  12. KingSupernova31 commented on Sep 21, 2025

    @KingSupernova31
    KingSupernova31
    on Sep 21, 2025
    More actions

    Agreed this is a very useful feature, would be nice to have it stable. But please not before async support is added! #54307

  13. everett1992 commented on Oct 15, 2025

    @everett1992
    everett1992
    on Oct 15, 2025
    ContributorAuthor
    More actions

    @KingSupernova31 I don't think async support should be required to be implemented before the sync API is stable. We just need enough of the async API sketched out to be confident that it meshes with the sync model.

    For example, whether DatabaseSync should be renamed Database if we want sync and async access via the same class, or if there will be a new DatabaseAsync class with only async methods.

    Reacted by Tobias Petry, Michael Kriese, Isaac King, Adam, 鸣音 and wanton7
  14. Renegade334
    removed
    feature requestIssues requesting new Node.js features.
    on Mar 3, 2026
  15. Renegade334
    removed this from Node.js feature requestson Mar 3, 2026
  16. BunnyNabbit
    marked this as blocking on Mar 27, 2026
    • Use native Node.js SQLite for KeyframeRecord BunnyNabbit/classicborne#8
  17. github-actions commented on Jul 20, 2026

    @github-actions
    github-actionsBot
    on Jul 20, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue has been marked as stale due to 90 days of inactivity.
    It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.

    Reacted by Michael Kriese
  18. github-actions
    added
    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.
    on Jul 20, 2026
  19. trivikr
    added
    never-staleIssues and PRs exempt from automated stale handling.
    and removed
    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.
    on Jul 27, 2026
  20. TrevorBurnham commented on Aug 4, 2026

    @TrevorBurnham
    TrevorBurnham
    on Aug 4, 2026
    Contributor
    More actions

    I couldn't find a written list of blockers for node:sqlite stabilization, so I went through the open sqlite issues and PRs and drafted one below. Corrections and additions welcome.


    1. Design decision that can't be deferred

    • Settle whether an async API gets a separate class or shares Database. Per the discussion in sqlite: mark as release candidate #61262 and here, async doesn't need to ship first, but the extension point does need to be decided.
    • Decide on DatabaseSync → Database. In February, @louwers, @geeksilva97 and @cjihrig (non-blocking) all indicated the rename made sense, but no PR was opened and main still has DatabaseSync. This is the one item that gets materially harder after stabilization, so it's worth either doing or explicitly closing out.
    • sqlite: add batched async Database API #62015 (batched async Database) is at MVP and hasn't moved since May. It still needs docs, and it has an open question about v8::Promise losing async context that could use guidance from someone who knows that area.

    Note that as it stands, #62015 adds an async Database in contrast to the existing DatabaseSync. So merging that PR would cement the existing DatabaseSync naming.

    What I'd suggest is that we rename DatabaseSync → Database, but have a separate node:sqlite/promises import path for the async API, consistent with the established convention for APIs like fs and stream.

    2. Memory safety

    • node:sqlite segfaults when db.close() is called from a user-defined function callback during query execution #63180 — db.close() from a user-defined function segfaults (confirmed-bug). Fixed by sqlite: prevent database close during callbacks #64743.
    • sqlite: reentrancy into a running statement from a user-defined function is unguarded #65102 - Reentrancy into a running statement is unguarded. Fix in sqlite: reject connection access from authorizer callbacks #65156.
    • sqlite: prevent reentrant statement finalization from callbacks #64795 — deserialize() is unguarded: it calls FinalizeStatements() at src/node_sqlite.cc:1909 with no callback-depth check, while close() alongside it is now covered. Fix in sqlite: reject deserialize() while in a callback #64796.
    • Unchecked sqlite3 API calls #63311 — unchecked sqlite3_step() / sqlite3_reset() return values. Fix in sqlite: check sqlite3_step() and sqlite3_reset() results #63319.
    • sqlite: fix undefined behaviour in Session::Changeset() #63637 — UB in Session::Changeset().
    • sqlite: manage sqlite3_stmt lifetime with RAII #62419 — RAII ownership for sqlite3_stmt.
    • sqlite: authorizer callback can modify invoking connection despite SQLite contract #63207 — authorizer callback can reenter the connection, contrary to the sqlite3_set_authorizer() contract. Fix in sqlite: reject connection access from authorizer callbacks #65156.
    • sqlite: two reentrancy guard gaps let a callback free the object SQLite is still using #65428 - authorizer callback can free memory SQLite is using.

    3. Semantics that become semver-major if deferred

    These value-conversion behaviors need to be pinned down:

    • sqlite: inconsistent undefined bind to null #61824 — undefined binding is inconsistent as implemented today. sqlite: bind undefined to null #62008 has a fix.
    • sqlite integer parameters should not be bound as doubles #63826 — integer parameters bound as double. Currently labeled question; worth a decision either way.
    • sqlite: bind Boolean #62001 (boolean binding, author ready), sqlite: bind ArrayBuffer #62061 (ArrayBuffer), sqlite: support reading NULL as undefined in result sets #61472 / sqlite: statement.setReadNullAsUndefined() #59457 (NULL as undefined). Each of these adds a conversion path, so nailing down the intended type-mapping table as a whole may be more productive than deciding them one at a time.
    Reacted by Trivikram Kamat, Tobias Petry, Henrik Gaßmann, Michael Kriese and William Gorge
  21. BurningEnlightenment commented on Aug 5, 2026

    @BurningEnlightenment
    BurningEnlightenment
    on Aug 5, 2026
    More actions

    w.r.t. DatabaseSync I recall that the destructor closes the DB connection if the user forgot to do so. Given that FileHandle moved in the opposite direction with DEP0137, it might be worth to align their behaviour in that regard before stabilizing the API.

    If I have time, I might rebase the async Database PR to the current main commit this weekend.

  22. christianaurichzm commented on Nov 19, 2026

    @christianaurichzm
    christianaurichzm
    on Nov 19, 2026
    Member
    More actions

    @cjihrig in your review on the RC PR you said the async API should be decided before stable, since it could affect the sync API. Now that the rename (#65988) landed, do you see anything left on the async side that could require a breaking change to the sync API?

    Some of the options in #67353 (arrays passed as the first argument) and #67427 (closing on GC) would be breaking after stable, so it might be worth looking at them first.

  23. cjihrig commented on Nov 19, 2026

    @cjihrig
    cjihrig
    on Nov 19, 2026
    Contributor
    More actions

    Ship it :shipit:

    Reacted by Christian Aurich Zanettini Martins and Bart Louwers
  24. christianaurichzm commented on Nov 19, 2026

    @christianaurichzm
    christianaurichzm
    on Nov 19, 2026
    Member
    More actions

    Thanks! I'm happy to open the PR, unless someone else wants to. Reviews welcome once it's up.

  25. christianaurichzm
    closed this as completedin d3fdcc6on Nov 22, 2026
  26. dnalborczyk
    added a commit that references this issue on Nov 22, 2026

    sqlite: mark as stable

    d3fdcc6
  27. aduh95
    added a commit that references this issue on Nov 23, 2026

    sqlite: mark as stable

    7f6fae9
  28. gabylb
    added a commit that references this issue on Nov 27, 2026

    sqlite: mark as stable

    eb6359c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    never-staleIssues and PRs exempt from automated stale handling.sqliteIssues and PRs related to the SQLite subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.