ServerConnectInfo¶
Connection parameters needed to reach the PostgreSQL server. Grouped because they are always used together — individually they have no meaning.
auth_requirement constrains which server-offered authentication methods
the client will accept. Defaults to AuthRequireSCRAM (secure by default);
set to AllowAnyAuth to connect to servers configured with MD5, cleartext,
or trust authentication. See AuthRequirement for the rationale.
An optional connection_timeout bounds the TCP connection phase. If the
timeout fires before a TCP connection is established, pg_session_connection_failed
is called with ConnectionFailedTimeout. Construct the timeout with
lori.MakeConnectionTimeout(milliseconds).
Constructors¶
create¶
new val create(
auth': TCPConnectAuth val,
host': String val,
service': String val,
ssl_mode': SSLMode = reference,
auth_requirement': AuthRequirement = reference,
connection_timeout': (ConnectionTimeout | None val) = reference)
: ServerConnectInfo val^
Parameters¶
- auth': TCPConnectAuth val
- host': String val
- service': String val
- ssl_mode': SSLMode = reference
- auth_requirement': AuthRequirement = reference
- connection_timeout': (ConnectionTimeout | None val) = reference
Returns¶
- ServerConnectInfo val^