From 0b0a431bff94d24866fc10d82dc91ab00287de2d Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sun, 29 Dec 2019 22:18:44 -0800 Subject: [PATCH] Changelog for 2.0 release --- docs/changelog.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index 95252c2..3117dda 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,6 +2,21 @@ Changelog =========== +.. _v2: + +2.0 (2019-12-29) +---------------- + +This release changes the behaviour of ``upsert``. It's a breaking change, hence ``2.0``. + +The ``upsert`` command-line utility and the ``.upsert()`` and ``.upsert_all()`` Python API methods have had their behaviour altered. They used to completely replace the affected records: now, they update the specified values on existing records but leave other columns unaffected. + +See :ref:`Upserting data using the Python API ` and :ref:`Upserting data using the CLI ` for full details. + +If you want the old behaviour - where records were completely replaced - you can use ``$ sqlite-utils insert ... --replace`` on the command-line and ``.insert(..., replace=True)`` and ``.insert_all(..., replace=True)`` in the Python API. See :ref:`Insert-replacing data using the Python API ` and :ref:`Insert-replacing data using the CLI ` for more. + +For full background on this change, see `issue #66 `__). + .. _v1_12_1: 1.12.1 (2019-11-06)