Answers for "unhandledpromiserejectionwarning: error: no pg_hba.conf entry for host"

0

unhandledpromiserejectionwarning: error: no pg_hba.conf entry for host

var conString = "pg://admin:guest@localhost:5432/Employees";
var client = new pg.Client(conString);
client.connect();
Posted by: Guest on June-08-2021
0

unhandledpromiserejectionwarning: error: no pg_hba.conf entry for host

var client = new pg.Client({
    user: "admin",
    password: "guest",
    database: "Employees",
    port: 5432,
    host: "localhost",
    ssl: true
}); 
client.connect();
Posted by: Guest on June-08-2021

Code answers related to "unhandledpromiserejectionwarning: error: no pg_hba.conf entry for host"

Browse Popular Code Answers by Language