We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98ad5d5 commit b4d9b26Copy full SHA for b4d9b26
CHANGES.rst
@@ -1,6 +1,33 @@
1
Changes
2
=======
3
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
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
31
1.10.0
32
------
33
piccolo/__init__.py
@@ -1 +1 @@
-__VERSION__ = "1.10.0"
+__VERSION__ = "1.11.0"
0 commit comments