const { Pool, Client } = require("pg");
const conString = "postgres://postgres:dbpass@localhost/acm"; // тут всё правильно 100%
const client = new Client({
connectionString: connectionString,
});
client.connect();
client.query("SELECT * from guest", (err, res) => {
console.log(err, res);
client.end();
});
const conString = "postgres://postgres:dbpass@localhost/acm"; // тут всё правильно 100%
connectionString: "postgres://postgres:dbpass@localhost/acm",
const conString = "postgres://postgres:dbpass@localhost/acm";
const connectionString = "postgres://postgres:dbpass@localhost/acm";
const client = new Client({
connectionString: connectionString,
});
const client = new Client({
connectionString: conString,
});