postgres
postgres copied to clipboard
How to specify multiple hosts and ports in options
I have seen some examples where I can specify an array of hosts to the host
property in the options
postgres({
host: ["host1", "host2"]
database: "postgres",
username: "",
password: "",
port: 5432,
})
but this give me a type error host
must be a string. I'd like to specify multiple host and port combos host1:5432, host2:5433
. how to achieve this through options?