Skip to content
TopicTracker
来自 simonwillison.net查看原文
译文语言译文语言

sqlite-utils 4.0rc1

sqlite-utils 4.0rc1 发布,新增数据库迁移与嵌套事务支持。详见发布说明。

背景速读

- **sqlite-utils** 是 Simon Willison 开发的一款命令行工具和 Python 库,用来快速操作 SQLite 数据库——比如插入 JSON 数据、创建表、查询等。项目开源,在数据新闻和个人数据分析领域使用很广。 - **Simon Willison** 是知名 Web 开发者,Django 框架的联合创始人之一,他长期活跃在 Python 生态和开源社区。 - 这次发布的 4.0rc1(首个候选版本)引入了两个关键功能:**migrations**(数据库迁移)和 **nested transactions**(嵌套事务)。前者让用户可以按顺序定义和执行数据库 schema 的变更(类似 Django 的 migrations),后者允许在事务内部再开启子事务,提升复杂操作的可靠性。 - 这个版本是重大更新,因为之前 sqlite-utils 一直以简洁直接为特点,迁移功能是社区长期呼声较高的需求。

相关报道

  • HtmlUnit 5.0.0 has been released, now requiring JDK 17 as the minimum version. Key updates include major JavaScript engine improvements, full Web Crypto API support, WebSocket improvements, Web Speech API support, and updated browser profiles for Firefox 150 and Chrome/Edge 148.

  • JsPlumb, the JavaScript library for building visual connectivity interfaces, has released a major update with a modernized API and new diagram/2D chart engines. The project is now free for non-commercial use, with packages available for React, Angular, Vue, Svelte, and vanilla JS on the public NPM registry.

  • Datasette-apps is a new system that allows users to bundle and install full applications within Datasette, turning it into a platform for data-driven apps. It enables developers to create self-contained packages combining SQLite databases, metadata, plugins, templates, and assets.