Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { Client } = require('pg')
- const client = new Client({
- host: "ec2-75-101-138-26.compute-1.amazonaws.com",
- database: "dbpf06v32e9e03",
- user: "bliknxhjnmtbmz",
- password: 'b7d2461e6bf72f2f1edbb2c96e9e211fe6128e3cebc505455768e3d17729aa2f',
- port: 5432,
- ssl: true
- //connectionString: connectionString
- })
- client.connect()
- console.log(client.connect())
- let salida = client.query('SELECT * FROM register;', (err, res) =>
- {
- console.log(salida);
- client.end()
- })
- //console.log(salida)
Add Comment
Please, Sign In to add comment