9 lines
268 B
JavaScript
9 lines
268 B
JavaScript
const { Pool } = require('pg');
|
|
async function test() {
|
|
const pool = new Pool({ connectionString: 'postgresql://postgres:postgres@localhost:5432/xflow' });
|
|
const res = await pool.query('SELECT * FROM "User"');
|
|
console.log(res.rows);
|
|
process.exit(0);
|
|
}
|
|
test();
|