Skip to content

Commit 51ccbdd

Browse files
authored
Update postgrex.ex
1 parent 34a57fe commit 51ccbdd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/postgrex.ex

+3-5
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,9 @@ defmodule Postgrex do
8383
8484
* `:hostname` - Server hostname (default: PGHOST env variable, then localhost);
8585
* `:port` - Server port (default: PGPORT env variable, then 5432);
86-
* `:endpoints` - A list of endpoints (host and port pairs, with an optional
87-
extra_opts keyword list);
88-
Postgrex will try each endpoint in order, one by one, until the connection succeeds;
89-
The syntax is `[{host1, port1},{host2, port2},{host3, port3}]` or
90-
`[{host1, port1, extra_opt1: value},{host2, port2, extra_opt2: value}}]`;
86+
* `:endpoints` - A list of endpoints (host and port pairs) which Postgrex will attempt
87+
to connect in order, until one succeeds.
88+
The syntax is `[{host1, port1}, {host2, port2}, {host3, port3}]`.
9189
This option takes precedence over `:hostname+:port`;
9290
* `:socket_dir` - Connect to PostgreSQL via UNIX sockets in the given directory;
9391
The socket name is derived based on the port. This is the preferred method

0 commit comments

Comments
 (0)