File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Changes
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+
4390.72.0
540------
641
Original file line number Diff line number Diff line change 1- __VERSION__ = "0.72 .0"
1+ __VERSION__ = "0.73 .0"
You can’t perform that action at this time.
0 commit comments