Slight documentation error
JMurrin opened this issue · 1 comments
JMurrin commented
Hey Brian,
I noticed a slight documentation error with your client example and attached my proposed fix below it.
Current:
const client = new Client({
host: 'my.database-server.com',
port: 5334,
user: 'database-user',
password: 'secretpassword!!',
})
Fix:
const client = new Client({
database: 'my.database-server.com',
port: 5334,
user: 'database-user',
password: 'secretpassword!!',
connectionString: 'postgres://user:password@host:port/database',
})
Hope this helps!
charmander commented
You would use either
const client = new Client({
host: 'my.database-server.com',
port: 5334,
user: 'database-user',
password: 'secretpassword!!',
})
or
const client = new Client({
connectionString: 'postgres://user:password@host:port/database',
})
but not both.