Skip to content

Commit

Permalink
bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
dantownsend committed Dec 2, 2022
1 parent 63578ad commit eb6ba32
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -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
------

Expand Down
2 changes: 1 addition & 1 deletion piccolo/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__VERSION__ = "0.98.0"
__VERSION__ = "0.99.0"

0 comments on commit eb6ba32

Please sign in to comment.