You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use tokio_postgres::tls::{MakeTlsConnect,TlsConnect};
@@ -40,6 +40,9 @@ use tokio_postgres::{Error, Socket};
40
40
/// path to the directory containing Unix domain sockets. Otherwise, it is treated as a hostname. Multiple hosts
41
41
/// can be specified, separated by commas. Each host will be tried in turn when connecting. Required if connecting
42
42
/// with the `connect` method.
43
+
/// * `sslnegotiation` - TLS negotiation method. If set to `direct`, the client will perform direct TLS handshake, this only works for PostgreSQL 17 and newer.
44
+
/// Note that you will need to setup ALPN of TLS client configuration to `postgresql` when using direct TLS.
45
+
/// If set to `postgres`, the default value, it follows original postgres wire protocol to perform the negotiation.
43
46
/// * `hostaddr` - Numeric IP address of host to connect to. This should be in the standard IPv4 address format,
44
47
/// e.g., 172.28.40.9. If your machine supports IPv6, you can also use those addresses.
45
48
/// If this parameter is not specified, the value of `host` will be looked up to find the corresponding IP address,
0 commit comments