-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
sqlite: abortable backup #58888
Copy link
Copy link
Open
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.sqliteIssues and PRs related to the SQLite subsystem.Issues and PRs related to the SQLite subsystem.
Metadata
Metadata
Assignees
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.sqliteIssues and PRs related to the SQLite subsystem.Issues and PRs related to the SQLite subsystem.
Type
Projects
Status
Awaiting Triage
What is the problem this feature will solve?
Once started, there is currently no way to abandon a database backup operation in
node:sqlite.What is the feature you are proposing to solve the problem?
The
sqlite.backup()method should accept an abort signal, which would trigger an early call tosqlite3_backup_finish()to abort and rollback the backup operation.This would presumably necessitate some sort of JS wrapper.
cc: @nodejs/sqlite
What alternatives have you considered?
No response