Commit b4d9b26 1 parent 98ad5d5 commit b4d9b26 Copy full SHA for b4d9b26
File tree 2 files changed +28
-1
lines changed
2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 1
1
Changes
2
2
=======
3
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
+ .. 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
+
4
31
1.10.0
5
32
------
6
33
Original file line number Diff line number Diff line change 1
- __VERSION__ = "1.10 .0"
1
+ __VERSION__ = "1.11 .0"
You can’t perform that action at this time.
0 commit comments