Expose an interface to sqlite3_file_control
未关闭
还没有人认领这个 Issue。
extension-modules
topic-sqlite3
type-feature
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 35.9k
- PR 合并指标
- PR 指标待抓取
描述
Feature or enhancement
Proposal:
sqlite3_file_control can affect the semantics of a sqlite3 database, but is not exposed by the sqlite.Connection class. In particular, I would like to use the SQLITE_FCNTL_PERSIST_WAL opcode, which ensures that callers can open a WAL-mode database on a read-only mount even when the writers have closed the DB.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
- gh-128507
- gh-148870
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先阅读 sqlite3.Connection 接口和 sqlite3_file_control 文档,然后查看相关 PR gh-128507 和 gh-148870,了解当前的实现方向。当所请求的文件控制功能通过连接接口提供,并支持此处描述的 SQLITE_FCNTL_PERSIST_WAL 用例时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- sqlite
- 领域
- databases
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100