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
connectionString?: string, // e.g. postgres://user:password@host:5432/database
63
+
ssl?: any, // passed directly to node.TLSSocket, supports all tls.connect options
64
+
types?: any, // custom type parsers
65
+
statement_timeout?: number, // number of milliseconds before a statement in query will time out, default is no timeout
66
+
query_timeout?: number, // number of milliseconds before a query call will timeout, default is no timeout
67
+
application_name?: string, // The name of the application that created this Client instance
68
+
connectionTimeoutMillis?: number, // number of milliseconds to wait for connection, default is no timeout
69
+
idle_in_transaction_session_timeout?: number, // number of milliseconds before terminating any session with an open idle transaction, default is no timeout
70
+
};
71
+
```
72
+
73
+
However, this does not use a [connection pool](https://node-postgres.com/features/pooling), and is therefore less efficient.
74
+
It is therefore recommended in most cases not to use `msg.pgConfig` at all and instead stick to the built-in configuration node.
connectionString?: string,// e.g. postgres://user:password@host:5432/database
56
+
ssl?: any,// passed directly to node.TLSSocket, supports all tls.connect options
57
+
types?: any,// custom type parsers
58
+
statement_timeout?: number,// number of milliseconds before a statement in query will time out, default is no timeout
59
+
query_timeout?: number,// number of milliseconds before a query call will timeout, default is no timeout
60
+
application_name?: string,// The name of the application that created this Client instance
61
+
connectionTimeoutMillis?: number,// number of milliseconds to wait for connection, default is no timeout
62
+
idle_in_transaction_session_timeout?: number,// number of milliseconds before terminating any session with an open idle transaction, default is no timeout
0 commit comments