/**
 * MySQL pool — read-only no RDS (cambio_db)
 */
const mysql = require('mysql2/promise');

const pool = mysql.createPool({
  host: process.env.MYSQL_URL,
  user: process.env.USER_MYSQL,
  password: process.env.PW_MYSQL,
  database: 'cambio_db',
  waitForConnections: true,
  connectionLimit: 20,
});

module.exports = pool;
