The Chonkerton

sqlite-utils 4.0rc1 adds migrations and nested transactions

dev_tools

According to Simon Willison, sqlite-utils—a Python library and command-line tool for SQLite databases—reached version four-point-oh release candidate one this week. The major version bump brings two significant features: migrations for schema changes, and db dot atomic for managing nested transactions. Migrations are a port of Willison's earlier sqlite-migrate package, allowing developers to version control database schema changes. The db dot atomic method makes nested transactions easier to use in SQLite, similar to patterns in Django and Peewee. The release also includes backwards-incompatible changes: a new upsert syntax and dropped support for Python three-point-eight. Willison kept the migrations system deliberately simple—it doesn't provide reverse migrations, so developers must fix mistakes with new forward migrations. The earlier sqlite-migrate package has been battle-tested for years, giving confidence the design is stable.

Source: https://simonwillison.net/2026/Jun/21/sqlite-utils-40rc1/...

Listen to this story

Hear this and more stories in a personalized audio briefing.

Open The Chonkerton