sqlite-utils 4.0rc1 发布,新增迁移和嵌套事务

sqlite-utils 4.0rc1 adds migrations and nested transactions

精选理由

Simon Willison 的 sqlite-utils 4.0rc1 加了迁移和嵌套事务,适合用 SQLite 做数据管理的开发者试试。

AI 摘要

sqlite-utils 4.0rc1 是 v4 的首个候选版本,主要新功能包括数据库迁移和嵌套事务。迁移功能源自独立包 sqlite-migrate,通过 migrations.py 文件定义迁移操作,支持 Python 和命令行两种方式。嵌套事务通过 db.atomic() 上下文管理器实现,基于 SQLite savepoints,简化了嵌套事务管理。该版本包含一些向后不兼容的更改,请用户测试反馈。

AI 翻译 · 中文

sqlite-utils 4.0rc1 是 v4 的首个候选版本,主要新功能包括数据库迁移和嵌套事务。迁移功能源自独立包 sqlite-migrate,通过 migrations.py 文件定义迁移操作,支持 Python 和命令行两种方式。嵌套事务通过 db.atomic() 上下文管理器实现,基于 SQLite savepoints,简化了嵌套事务管理。该版本包含一些向后不兼容的更改,请用户测试反馈。

Simon Willison’s Weblogsqlite-utils is my combined Python library and CLI tool for working with SQLite databases. It provides an extensive set of higher-level operations on top of Python's default sqlite3 package , including support for comple