Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,8 @@ const sql =

For more information regarding `ssl` with `postgres`, check out the [Node.js documentation for tls](https://nodejs.org/dist/latest-v16.x/docs/api/tls.html#new-tlstlssocketsocket-options).

Set `sslnegotiation: 'direct'` to skip the PostgreSQL SSLRequest negotiation and start TLS directly with ALPN.


### Multi-host connections - High Availability (HA)

Expand Down
2 changes: 2 additions & 0 deletions deno/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1042,6 +1042,8 @@ const sql =

For more information regarding `ssl` with `postgres`, check out the [Node.js documentation for tls](https://nodejs.org/dist/latest-v16.x/docs/api/tls.html#new-tlstlssocketsocket-options).

Set `sslnegotiation: 'direct'` to skip the PostgreSQL SSLRequest negotiation and start TLS directly with ALPN.


### Multi-host connections - High Availability (HA)

Expand Down
5 changes: 5 additions & 0 deletions deno/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ interface BaseOptions<T extends Record<string, postgres.PostgresType>> {
* @default false
*/
ssl: 'require' | 'allow' | 'prefer' | 'verify-full' | boolean | object;
/**
* SSL negotiation mode
* @default null
*/
sslnegotiation: 'direct' | null;
/**
* Max number of connections
* @default 10
Expand Down
5 changes: 5 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ interface BaseOptions<T extends Record<string, postgres.PostgresType>> {
* @default false
*/
ssl: 'require' | 'allow' | 'prefer' | 'verify-full' | boolean | object;
/**
* SSL negotiation mode
* @default null
*/
sslnegotiation: 'direct' | null;
/**
* Max number of connections
* @default 10
Expand Down