import { Pool } from 'pg'; const pool = new Pool({ connectionString: 'postgresql://sail:password@localhost:5432/dutchie_menus' }); async function check() { try { const result = await pool.query("SELECT id, name, slug, dutchie_url FROM stores WHERE slug LIKE '%48th%'"); console.log('Stores with "48th" in slug:'); console.log('─'.repeat(80)); result.rows.forEach(store => { console.log(`ID: ${store.id}`); console.log(`Name: ${store.name}`); console.log(`Slug: ${store.slug}`); console.log(`URL: ${store.dutchie_url}`); console.log('─'.repeat(80)); }); console.log(`Total: ${result.rowCount}`); } catch (error: any) { console.error('Error:', error.message); } finally { await pool.end(); } } check();