Skip to content

ServerConnectInfo

[Source]

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).

class val ServerConnectInfo

Constructors

create

[Source]

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

Returns


Public fields

let auth: TCPConnectAuth val

[Source]


let host: String val

[Source]


let service: String val

[Source]


let ssl_mode: SSLMode

[Source]


let auth_requirement: AuthRequirement

[Source]


let connection_timeout: (ConnectionTimeout | None val)

[Source]