From 5859917e572e0ee37656f5e2092b9b7434c7ba7c Mon Sep 17 00:00:00 2001 From: Daniel Townsend Date: Thu, 13 Jun 2024 13:14:10 +0100 Subject: [PATCH] bumped version --- CHANGES.rst | 35 +++++++++++++++++++++++++++++++++++ piccolo/__init__.py | 2 +- 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index dec4930a5..8d0790f25 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,41 @@ Changes ======= +1.9.0 +----- + +Added some math functions, for example ``Abs``, ``Ceil``, ``Floor`` and +``Round``. + +.. code-block:: python + + >>> from piccolo.query.functions import Round + >>> await Ticket.select(Round(Ticket.price, alias="price")) + [{'price': 50.0}] + +Added more operators to ``QueryString`` (multiply, divide, modulus, power), so +we can do things like: + +.. code-block:: python + + >>> await Ticket.select(Round(Ticket.price) * 2) + [{'price': 100.0}] + +Fixed some edge cases around defaults for ``Array`` columns. + +.. code-block:: python + + def get_default(): + # This used to fail: + return [datetime.time(hour=8, minute=0)] + + class MyTable(Table): + times = Array(Time(), default=get_default) + +Fixed some deprecation warnings, and improved CockroachDB array tests. + +------------------------------------------------------------------------------- + 1.8.0 ----- diff --git a/piccolo/__init__.py b/piccolo/__init__.py index a407d5275..26de05016 100644 --- a/piccolo/__init__.py +++ b/piccolo/__init__.py @@ -1 +1 @@ -__VERSION__ = "1.8.0" +__VERSION__ = "1.9.0"