From 14af0e3ad14454a2b29da386765df5479da30a1b Mon Sep 17 00:00:00 2001 From: Daniel Townsend Date: Thu, 30 May 2024 01:02:40 +0100 Subject: [PATCH] bumped version --- CHANGES.rst | 21 +++++++++++++++++++++ piccolo/__init__.py | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index e1fb2c900..493159c7d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,27 @@ Changes ======= +1.6.0 +----- + +Added support for a bunch of Postgres functions, like ``Upper``, ``Lower``, +``Length``, and ``Ltrim``. They can be used in ``select`` queries: + +.. code-block:: python + + from piccolo.query.functions.string import Upper + >>> await Band.select(Upper(Band.name)) + [["name": "PYTHONISTAS"]] + +And also in ``where`` clauses: + +.. code-block:: python + + >>> await Band.select().where(Upper(Band.manager.name) == 'GUIDO') + [["name": "Pythonistas"]] + +------------------------------------------------------------------------------- + 1.5.2 ----- diff --git a/piccolo/__init__.py b/piccolo/__init__.py index 2c74cfe9e..bb270431a 100644 --- a/piccolo/__init__.py +++ b/piccolo/__init__.py @@ -1 +1 @@ -__VERSION__ = "1.5.2" +__VERSION__ = "1.6.0"