Skip to content

Commit 1f9b386

Browse files
Fix documented fallback of database option (#159)
It was `PGUSER` first at one point, and now falls back to the actual `user` value used. Co-authored-by: Charmander <[email protected]>
1 parent 2e179fc commit 1f9b386

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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.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)