UNPKG

genesis-cli

Version:

It´s a CLI app to Create NodeJS projects like a boss

20 lines (17 loc) 369 B
'use strict'; const Sequelize = require('sequelize'); const ENV = process.env; // Create a conexion config let DB_NAME = ENV.DB_NAME; const conexion = new Sequelize(DB_NAME, ENV.DB_USER, ENV.DB_PASSWORD, { host: ENV.DB_HOST, dialect: ENV.DB_DIALECT, port: ENV.DB_PORT, pool: { max: 5, min: 0, acquire: 30000, idle: 10000 } }); module.exports = conexion;