-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multihost support for High Availability setups #158
Conversation
# Conflicts: # lib/index.js # tests/index.js
Would you mind taking a look at this @Minigugus and @stalniy ? |
I haven't tested yet but looks good to me. I can try to test it this week if you want, but I never used the postgresql's multi hosts feature, I can't promise anything. Do you want me to update typescript types by the way? |
Thanks, a couple of extra eyes was fine, I've tested it ;) Would be great to have the typescript types updated too 👍 |
# Conflicts: # lib/connection.js # lib/index.js
I corrected some problems with the types along the way. I also have an improvement for B but I wanted your opinion before committing, since it may be a breaking change. It improves support for multi-statement queries with |
@Minigugus looks great, thank you - are any of the unrelated type changes breaking in any way? re: |
Multiple hosts can be specified like in psql.
It's either done through the connection string, or through arrays in the host and port parameters.