insight Simon Willison 2026-07-06T05:40 正文 ok 95 words

sqlite-utils 4.0rc3 发布:复合外键反射与大小写不敏感列名支持

英文标题:sqlite-utils 4.0rc3

开发者原计划发布 sqlite-utils 4.0 稳定版,但因借助 Claude Fable 5 与 GPT-5.5 处理积压问题,变更日志不断膨胀,最终推出了 rc3 版本。该版本最重要的特性是复合外键的反射与创建,此功能对 table.foreign_keys 带来了破坏性变更,因此必须与 4.0 稳定版一同发布。此外,库已采用 SQLite 的大小写不敏感列名惯例,多处代码随之更新。这些改进为需要复杂数据库关系的开发者提供了更强支持,同时也提醒用户在升级时注意 API 兼容性。
打开原文相关 2.4 · 机会 0

中文

我原本希望在本周末发布 sqlite-utils 4.0 稳定版,但当我结合使用 Claude Fable 5 和 GPT-5.5 处理积压的 issue 与 PR 时,自 rc2 以来的更新日志不断变长。

最大的新功能是支持对复合外键进行反射和创建——该功能涉及对 table.foreign_keys 的细微破坏性变更,因此必须在 4.0 稳定版中引入。

sqlite-utils 现在还遵循 SQLite 的大小写不敏感列名惯例,这一改动最终导致多处代码需要同时调整。

English / 原文

I hoped to release sqlite-utils 4.0 stable this weekend, but as I worked through the backlog of issues and PRs with a combination of Claude Fable 5 and GPT-5.5 the changelog since rc2 kept getting bigger.

The biggest new feature is support for introspecting and creating compound foreign keys - a feature that involves a subtle breaking change to table.foreign_keys and hence needed to land for the 4.0 stable release.

sqlite-utils also now follows SQLite's convention for case insensitive column names, which turned out to touch a bunch of different places at once.