Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Sequelize = require('sequelize');
- const config = {
- user: "root",
- database: "api",
- password: "",
- host: "localhost",
- port: 3306,
- dialect: 'mysql',
- max: 10000,
- idleTimeoutMillis: 3000
- };
- const seq = new Sequelize(
- config.database,
- config.user,
- config.password,
- {
- host:config.host,
- dialect:config.dialect,
- port:config.port,
- logging: false,
- pool: {
- max: config.max,
- min: 0,
- idle: config.idleTimeoutMillis
- }
- }
- );
- module.exports = seq
- const Sequelize = require('sequelize');
- const config = {
- user: "sa",
- database: "dbPortal",
- password: "",
- host: "localhost",
- port: 1433,
- dialect: 'mssql',
- max: 10000,
- idleTimeoutMillis: 3000
- };
- const seq = new Sequelize(
- config.database,
- config.user,
- config.password,
- {
- host:config.host,
- dialect:config.dialect,
- port:config.port,
- logging: false,
- pool: {
- max: config.max,
- min: 0,
- idle: config.idleTimeoutMillis
- }
- }
- );
- module.exports = seq
Add Comment
Please, Sign In to add comment