9 lines
334 B
JavaScript
9 lines
334 B
JavaScript
const { Pool } = require('pg');
|
|
async function query() {
|
|
const pool = new Pool({ connectionString: 'postgresql://postgres:postgres@localhost:5432/xflow' });
|
|
const res = await pool.query('SELECT nodes FROM "Canvas" WHERE id = \'test-crm\'');
|
|
console.log(JSON.stringify(res.rows[0].nodes, null, 2));
|
|
process.exit(0);
|
|
}
|
|
query();
|