diff --git a/README.md b/README.md index 39678273..28e20f5b 100644 --- a/README.md +++ b/README.md @@ -975,7 +975,7 @@ const sql = postgres('postgres://username:password@host:port/database', { }, connection : { application_name : 'postgres.js', // Default application_name - ... // Other connection parameters + ... // Other connection parameters, see https://www.postgresql.org/docs/current/runtime-config-client.html }, target_session_attrs : null, // Use 'read-write' with multiple hosts to // ensure only connecting to primary diff --git a/deno/README.md b/deno/README.md index 19fd0993..d80fea5f 100644 --- a/deno/README.md +++ b/deno/README.md @@ -971,7 +971,7 @@ const sql = postgres('postgres://username:password@host:port/database', { }, connection : { application_name : 'postgres.js', // Default application_name - ... // Other connection parameters + ... // Other connection parameters, see https://www.postgresql.org/docs/current/runtime-config-client.html }, target_session_attrs : null, // Use 'read-write' with multiple hosts to // ensure only connecting to primary diff --git a/deno/types/index.d.ts b/deno/types/index.d.ts index 215d5b62..6f96fe97 100644 --- a/deno/types/index.d.ts +++ b/deno/types/index.d.ts @@ -331,8 +331,18 @@ declare namespace postgres { * @default 'postgres.js' */ application_name: string; + default_transaction_isolation: 'read uncommitted' | 'read committed' | 'repeatable read' | 'serializable', + default_transaction_read_only: boolean, + default_transaction_deferrable: boolean, + statement_timeout: number, + lock_timeout: number, + idle_in_transaction_session_timeout: number, + idle_session_timeout: number, + DateStyle: string, + IntervalStyle: string, + TimeZone: string, /** Other connection parameters */ - [name: string]: string; + [name: string]: string | number | boolean; } interface Options> extends Partial> { diff --git a/types/index.d.ts b/types/index.d.ts index 8dacd9c4..78d559ef 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -329,8 +329,18 @@ declare namespace postgres { * @default 'postgres.js' */ application_name: string; + default_transaction_isolation: 'read uncommitted' | 'read committed' | 'repeatable read' | 'serializable', + default_transaction_read_only: boolean, + default_transaction_deferrable: boolean, + statement_timeout: number, + lock_timeout: number, + idle_in_transaction_session_timeout: number, + idle_session_timeout: number, + DateStyle: string, + IntervalStyle: string, + TimeZone: string, /** Other connection parameters */ - [name: string]: string; + [name: string]: string | number | boolean; } interface Options> extends Partial> {