Skip to content

Commit b4d9b26

Browse files
committedJun 15, 2024
bumped version
1 parent 98ad5d5 commit b4d9b26

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed
 

‎CHANGES.rst

+27
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,33 @@
11
Changes
22
=======
33

4+
1.11.0
5+
------
6+
7+
Added datetime functions, for example ``Year``:
8+
9+
.. code-block:: python
10+
11+
>>> from piccolo.query.functions import Year
12+
>>> await Concert.select(Year(Concert.starts, alias="starts_year"))
13+
[{'starts_year': 2024}]
14+
15+
Added the ``Concat`` function, for concatenating strings:
16+
17+
.. code-block:: python
18+
19+
>>> await Band.select(
20+
... Concat(
21+
... Band.name,
22+
... '-',
23+
... Band.manager._.name,
24+
... alias="name_and_manager"
25+
... )
26+
... )
27+
[{"name_and_manager": "Pythonistas-Guido"}]
28+
29+
-------------------------------------------------------------------------------
30+
431
1.10.0
532
------
633

‎piccolo/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__VERSION__ = "1.10.0"
1+
__VERSION__ = "1.11.0"

0 commit comments

Comments
 (0)