From eb6ba32e85c2357969e0131a2991b7e50a1dcfb1 Mon Sep 17 00:00:00 2001 From: Daniel Townsend Date: Fri, 2 Dec 2022 13:00:02 +0000 Subject: [PATCH] bumped version --- CHANGES.rst | 23 +++++++++++++++++++++++ piccolo/__init__.py | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 76db6d0e5..855260772 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,29 @@ Changes ======= +0.99.0 +------ + +You can now use the ``returning`` clause with ``delete`` queries. + +For example: + +.. code-block:: python + + >>> await Band.delete().where(Band.popularity < 100).returning(Band.name) + [{'name': 'Terrible Band'}, {'name': 'Awful Band'}] + +This also means you can count the number of deleted rows: + +.. code-block:: python + + >>> len(await Band.delete().where(Band.popularity < 100).returning(Band.id)) + 2 + +Thanks to @waldner for adding this feature. + +------------------------------------------------------------------------------- + 0.98.0 ------ diff --git a/piccolo/__init__.py b/piccolo/__init__.py index c346757ac..1513745e0 100644 --- a/piccolo/__init__.py +++ b/piccolo/__init__.py @@ -1 +1 @@ -__VERSION__ = "0.98.0" +__VERSION__ = "0.99.0"