sqlite-utils 4.2

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

sqlite-utils users can now safely alter table schemas in place, but should upgrade to 4.2.1 immediately because 4.2 shipped with a crashing bug.

Read this as

sqlite-utils, a free open-source command-line tool and Python library for working with SQLite databases, released version 4.2. Its table.transform() feature, which restructures a table by rebuilding it and copying data across, now preserves trickier schema details like check constraints, unique constraints, and column comments. New properties also let developers inspect check constraints. A crashing bug was found in 4.2 and fixed in version 4.2.1.

sqlite-utils 4.2 makes schema transformations far safer for teams managing SQLite databases: version 4.2's transform() now preserves check constraints, unique constraints, and column comments that earlier releases could silently drop. The release is free and open source, with community contributions. Risk note: 4.2 contained a crashing bug, fixed in 4.2.1, so adopters should skip straight to the patched version.

sqlite-utils 4.2 expands table.transform(), which implements complex ALTER TABLE operations by creating a new table, copying data, then dropping and replacing the original. Version 4.2 preserves more edge-case schema definitions, including check constraints, unique constraints, and column comments. New introspection properties expose check constraint details. A crashing bug in 4.2 was fixed in 4.2.1 (issue #842).

Read the original

This summary exists to save you time, not to replace the source.

Key terms

sqlite-utils 4.2 SQLite transform() 4.2.1

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading