From 79ced83fe580de36e4bf451f8cb09ce7eb9e1d21 Mon Sep 17 00:00:00 2001 From: Alexander Eble <35292572+alexanderdavide@users.noreply.github.com> Date: Mon, 1 Jun 2020 11:28:51 +0200 Subject: [PATCH 1/2] Added host to client config --- content/api/2-client.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/content/api/2-client.mdx b/content/api/2-client.mdx index 902e66a..0e501b1 100644 --- a/content/api/2-client.mdx +++ b/content/api/2-client.mdx @@ -13,6 +13,7 @@ Every field of the `config` object is entirely optional. A `Client` instance wil config = { user?: string, // default process.env.PGUSER || process.env.USER password?: string, //default process.env.PGPASSWORD + host?: string, // default process.env.PGHOST || process.env.HOST database?: string, // default process.env.PGDATABASE || process.env.USER port?: number, // default process.env.PGPORT connectionString?: string, // e.g. postgres://user:password@host:5432/database From ed35a90323a2781f40c4eb90cb72b8fdadbfaed1 Mon Sep 17 00:00:00 2001 From: Alexander Eble <35292572+alexanderdavide@users.noreply.github.com> Date: Mon, 1 Jun 2020 11:34:27 +0200 Subject: [PATCH 2/2] Update 2-client.mdx --- content/api/2-client.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/api/2-client.mdx b/content/api/2-client.mdx index 0e501b1..d1330ad 100644 --- a/content/api/2-client.mdx +++ b/content/api/2-client.mdx @@ -13,7 +13,7 @@ Every field of the `config` object is entirely optional. A `Client` instance wil config = { user?: string, // default process.env.PGUSER || process.env.USER password?: string, //default process.env.PGPASSWORD - host?: string, // default process.env.PGHOST || process.env.HOST + host?: string, // default process.env.PGHOST database?: string, // default process.env.PGDATABASE || process.env.USER port?: number, // default process.env.PGPORT connectionString?: string, // e.g. postgres://user:password@host:5432/database