Sequelize db connection code example
Example 1: default pool size in sequelize
const defaultPoolingConfig = {
max: 5,
min: 0,
idle: 10000,
acquire: 10000,
evict: 10000,
handleDisconnects: true
};
Example 2: new Sequelize('featherstutorial', 'databaseUser', 'databasePassword'
var sequelize = new Sequelize('mysql://user:[email protected]:9821/dbname', {
})
Example 3: new Sequelize('featherstutorial', 'databaseUser', 'databasePassword'
var sequelize = new Sequelize('database', 'username'[, 'password'])