sqlite: abortable backup
未关闭
还没有人认领这个 Issue。
feature request
sqlite
stale
- 主要语言
- JavaScript
- 星标
- 122k
- 派生
- 37.4k
- 平均合并
- 4 天 3 小时
- 30 天内合并 PR
- 272
描述
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 to sqlite3_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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 sqlite.backup() 入口开始,跟踪它如何到达 sqlite3_backup_finish()。确定可以在哪里接收中止信号并将其连接到该路径,然后验证中止会结束并回滚 backup 操作。当中止信号能够可靠地停止正在进行的 backup,且不会使其保持活动状态时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, node.js, sqlite
- 领域
- backend-api-design, databases
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100