From a57acf84f77aac01fd6b8aaa2ce089145ff3c3e7 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 24 Sep 2020 09:44:30 -0700 Subject: [PATCH] Release 2.21 Refs #172, #175, #176, #177 --- docs/changelog.rst | 12 ++++++++++++ setup.py | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 85378ee24..bac54311f 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,6 +2,18 @@ Changelog =========== +.. _v2_21: + +2.21 (2020-09-24) +----------------- + +- ``table.extract()`` and ``sqlite-utils extract`` now apply much, much faster - one example operation reduced from twelve minutes to just four seconds! (`#172 `__) +- ``sqlite-utils extract`` no longer shows a progress bar, because it's fast enough not to need one. +- New ``column_order=`` option for ``table.transform()`` which can be used to alter the order of columns in a table. (`#175 `__) +- ``sqlite-utils transform --column-order=`` option (with a ``-o`` shortcut) for changing column order. (`#176 `__) +- The ``table.transform(drop_foreign_keys=)`` parameter and the ``sqlite-utils transform --drop-foreign-key`` option have changed. They now accept just the name of the column rather than requiring all three of the column, other table and other column. This is technically a backwards-incompatible change but I chose not to bump the major version number because the transform feature is so new. (`#177 `__) +- The table ``.disable_fts()``, ``.rebuild_fts()``, ``.delete()``, ``.delete_where()`` and ``.add_missing_columns()`` methods all now ``return self``, which means they can be chained together with other table operations. + .. _v2_20: 2.20 (2020-09-22) diff --git a/setup.py b/setup.py index 7e3d792d8..9ed64911a 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ import io import os -VERSION = "2.20" +VERSION = "2.21" def get_long_description():