No additional requirents, except packages in package.json
- default postgres config + name field, which is used in logging purposes
const DB = require('./index');
const db = new DB({
host: 'localhost',
port: 5432,
user: 'postgres',
password: '1234'
});
(async () => {
await db.connect();
const { rows } = await db.query(`SELECT * FROM tickers."CurrenciesV3");
})();