How to get multiple hosts configuration and database cluster failover

Viewed 396

In java we had an option to use multiple hosts configuration with failover mechanism:

jdbc:postgresql://node1:port1,node2:port2,node3:port3/accounting?targetServerType=primary

do we have such support in Go? How the connection string should look like? i've seen that lib/pq is not maintained

i didn't find any information about jackc/pgx if they support multi host, or how the connection string should look like. Please if someone can provide an example.

0 Answers
Related