Skip to content

Commit 36e5832

Browse files
database name fallback is its respective env variable or the user name
Co-authored-by: Charmander <~@charmander.me>
1 parent f25ffa9 commit 36e5832

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: content/api/2-client.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ config = {
1414
user?: string, // default process.env.PGUSER || process.env.USER
1515
password?: string or function, //default process.env.PGPASSWORD
1616
host?: string, // default process.env.PGHOST
17-
database?: string, // default process.env.PGDATABASE || process.env.PGUSER || process.env.USER
17+
database?: string, // default process.env.PGDATABASE || user
1818
port?: number, // default process.env.PGPORT
1919
connectionString?: string, // e.g. postgres://user:password@host:5432/database
2020
ssl?: any, // passed directly to node.TLSSocket, supports all tls.connect options

0 commit comments

Comments
 (0)