File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -224,9 +224,10 @@ This is why `db_session` and other functions accept `DBConnect` as input.
224224This way, you can work with multiple hosts simultaneously,
225225for example, with the master and the replica.
226226
227-
228- Let's imagine that you have a third-party functionality that helps determine
229- the master or replica.
227+ libpq can detect the master and replica to create an engine. However, it only
228+ does this once during creation. This handler helps change the host on the fly
229+ if the master or replica changes. Let's imagine that you have a third-party
230+ functionality that helps determine the master or replica.
230231
231232In this example, the host is not set from the very beginning, but will be
232233calculated during the first call to create a session.
You can’t perform that action at this time.
0 commit comments