From 3e14d9c8c8a84e4fb40e1117ad51305207510574 Mon Sep 17 00:00:00 2001 From: Daniel Townsend Date: Fri, 7 Jun 2024 21:57:44 +0100 Subject: [PATCH] bumped version --- CHANGES.rst | 19 +++++++++++++++++++ piccolo/__init__.py | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index dd77fba43..dec4930a5 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,25 @@ Changes ======= +1.8.0 +----- + +Added the ``Cast`` function, for performing type conversion. + +Here's an example, where we convert a ``timestamp`` to ``time``: + +.. code-block:: python + + >>> from piccolo.columns import Time + >>> from piccolo.query.functions import Cast + + >>> await Concert.select(Cast(Concert.starts, Time())) + [{'starts': datetime.time(19, 0)}] + +A new section was also added to the docs describing functions in more detail. + +------------------------------------------------------------------------------- + 1.7.0 ----- diff --git a/piccolo/__init__.py b/piccolo/__init__.py index 64888e7c6..a407d5275 100644 --- a/piccolo/__init__.py +++ b/piccolo/__init__.py @@ -1 +1 @@ -__VERSION__ = "1.7.0" +__VERSION__ = "1.8.0"