import { Pool } from 'pg'; const pool = new Pool({ connectionString: 'postgresql://sail:password@localhost:5432/dutchie_menus' }); async function checkDB() { try { const result = await pool.query(` SELECT COUNT(*) as total, COUNT(*) FILTER (WHERE active = true) as active FROM proxies `); console.log('Proxies:', result.rows[0]); const stores = await pool.query('SELECT slug FROM stores LIMIT 5'); console.log('Sample stores:', stores.rows.map(r => r.slug)); } catch (error: any) { console.error('Error:', error.message); } finally { await pool.end(); } } checkDB();