const { Pool } = require('pg'); async function test() { const pool = new Pool({ connectionString: 'postgresql://postgres:postgres@localhost:5432/xflow' }); const res = await pool.query('SELECT id, "ownerId" FROM "Canvas"'); console.log(res.rows); process.exit(0); } test();