const env = process.env;

// const sqlconfig = {
//   db: {
//     /* don't expose password or any sensitive info, done only for demo */
//     host: env.DB_HOST || "localhost",
//     user: env.DB_USER || "root",
//     password: env.DB_PASSWORD || "",
//     database: env.DB_NAME || "eld",
//   },
//   listPerPage: env.LIST_PER_PAGE || 10,
// };

const sqlconfig = {
  db: {
    host: env.DB_HOST || "database-1.cddgixshexgh.us-east-2.rds.amazonaws.com",
    user: env.DB_USER || "admin",
    password: env.DB_PASSWORD || "abcd1234",
    database: env.DB_NAME || "ELD",
  },
  listPerPage: env.LIST_PER_PAGE || 10,
};

module.exports = sqlconfig;
