Skip to content

Commit db57d6e

Browse files
committed
bumped version
1 parent 85ead5a commit db57d6e

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

CHANGES.rst

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,45 @@
11
Changes
22
=======
33

4+
1.22.0
5+
------
6+
7+
Python 3.13 is now officially supported.
8+
9+
``JSON`` / ``JSONB`` querying has been significantly improved. For example, if
10+
we have this table:
11+
12+
.. code-block:: python
13+
14+
class RecordingStudio(Table):
15+
facilities = JSONB()
16+
17+
And the ``facilities`` column contains the following JSON data:
18+
19+
.. code-block:: python
20+
21+
{
22+
"technicians": [
23+
{"name": "Alice Jones"},
24+
{"name": "Bob Williams"},
25+
]
26+
}
27+
28+
We can get the first technician name as follows:
29+
30+
.. code-block:: python
31+
32+
>>> await RecordingStudio.select(
33+
... RecordingStudio.facilities["technicians"][0]["name"].as_alias("name")
34+
... ).output(load_json=True)
35+
[{'name': 'Alice Jones'}, ...]
36+
37+
``TableStorage`` (used for dynamically creating Piccolo ``Table`` classes from
38+
an existing database) was improved, to support a Dockerised version of Piccolo
39+
Admin, which is coming soon.
40+
41+
-------------------------------------------------------------------------------
42+
443
1.21.0
544
------
645

piccolo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__VERSION__ = "1.21.0"
1+
__VERSION__ = "1.22.0"

0 commit comments

Comments
 (0)