diff --git a/CHANGES.rst b/CHANGES.rst index 2f0958783..70f36016f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,33 @@ Changes ======= +1.11.0 +------ + +Added datetime functions, for example ``Year``: + +.. code-block:: python + + >>> from piccolo.query.functions import Year + >>> await Concert.select(Year(Concert.starts, alias="starts_year")) + [{'starts_year': 2024}] + +Added the ``Concat`` function, for concatenating strings: + +.. code-block:: python + + >>> await Band.select( + ... Concat( + ... Band.name, + ... '-', + ... Band.manager._.name, + ... alias="name_and_manager" + ... ) + ... ) + [{"name_and_manager": "Pythonistas-Guido"}] + +------------------------------------------------------------------------------- + 1.10.0 ------ diff --git a/piccolo/__init__.py b/piccolo/__init__.py index f900dabe9..05dd9013c 100644 --- a/piccolo/__init__.py +++ b/piccolo/__init__.py @@ -1 +1 @@ -__VERSION__ = "1.10.0" +__VERSION__ = "1.11.0"