Skip to content

Commit 2081c91

Browse files
authored
Add note to client docs for tls.connect options (#71)
Why: node-postgres 8.0.0 introduced support for all tls.connect options for config.ssl. This commit: Makes reference to this in the Client constructor documentation.
1 parent 056d65f commit 2081c91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/api/2-client.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ config = {
1616
database?: string, // default process.env.PGDATABASE || process.env.USER
1717
port?: number, // default process.env.PGPORT
1818
connectionString?: string, // e.g. postgres://user:password@host:5432/database
19-
ssl?: any, // passed directly to node.TLSSocket
19+
ssl?: any, // passed directly to node.TLSSocket, supports all tls.connect options
2020
types?: any, // custom type parsers
2121
statement_timeout?: number, // number of milliseconds before a statement in query will time out, default is no timeout
2222
query_timeout?: number, // number of milliseconds before a query call will timeout, default is no timeout

0 commit comments

Comments
 (0)