Skip to content

Commit ffe173d

Browse files
committed
bumped version
1 parent 2ba0891 commit ffe173d

2 files changed

Lines changed: 36 additions & 1 deletion

File tree

CHANGES.rst

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

4+
0.73.0
5+
------
6+
7+
You can now specify extra nodes for a database. For example, if you have a
8+
read replica.
9+
10+
.. code-block:: python
11+
12+
DB = PostgresEngine(
13+
config={'database': 'main_db'},
14+
extra_nodes={
15+
'read_replica_1': PostgresEngine(
16+
config={
17+
'database': 'main_db',
18+
'host': 'read_replica_1.my_db.com'
19+
}
20+
)
21+
}
22+
)
23+
24+
And can then run queries on these other nodes:
25+
26+
.. code-block:: python
27+
28+
>>> await MyTable.select().run(node="read_replica_1")
29+
30+
See `PR 481 <https://github.com/piccolo-orm/piccolo/pull/481>`_. Thanks to
31+
@dashsatish for suggesting this feature.
32+
33+
Also, the ``targ`` library has been updated so it tells users about the
34+
``--trace`` argument which can be used to get a full traceback when a CLI
35+
command fails.
36+
37+
-------------------------------------------------------------------------------
38+
439
0.72.0
540
------
641

piccolo/__init__.py

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

0 commit comments

Comments
 (0)