Skip to content

[node:sqlite] db.close() does not actually close the database on Windows #29033

Open
@louislam

Description

@louislam

Version: Deno 2.2.11 / rc / canary

After called db.close(), the databse filename is still used by Deno process on Windows, the database file cannot be removed due to this bug.

I guess it is related to db.prepare(...).

It is working fine on Linux and MacOS, but it is not working on Windows. For Node.js, it is working on Windows.

I also created a Github workflow.

Reproduce

  1. On Windows
  2. Run this test:
    https://github.com/louislam/deno-sqlite-reproduce/blob/test/native-sqlite_test.mjs
deno test --allow-all

Logs

GitHub Workflow:
https://github.com/louislam/deno-sqlite-reproduce/actions/runs/14632159547/job/41056379552

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working correctlynode APIRelated to various "node:*" modules APIsnode:sqliteIssues related to the `node:sqlite` module

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions