Files
cannaiq/backend/count-products.ts
2025-11-28 19:45:44 -07:00

14 lines
307 B
TypeScript

import { pool } from './src/db/migrate.js';
async function countProducts() {
const result = await pool.query(
`SELECT COUNT(*) as total FROM products WHERE dispensary_id = 112`
);
console.log(`Total products for Deeply Rooted: ${result.rows[0].total}`);
await pool.end();
}
countProducts();