Advertisement
Guest User

Untitled

a guest
Feb 8th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. const Pool = require('pg').Pool
  2. const pool = new Pool({
  3. user: 'me',
  4. host: 'localhost',
  5. database: 'api',
  6. password: 'password',
  7. port: 5432,
  8. })
  9.  
  10. pool.query('SELECT * FROM users ORDER BY id ASC', (error, results) => {});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement