postgres icon indicating copy to clipboard operation
postgres copied to clipboard

How to specify multiple hosts and ports in options

Open lz000 opened this issue 1 year ago • 0 comments

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?

lz000 avatar Feb 21 '24 21:02 lz000