Skip to content

Instantly share code, notes, and snippets.

@aldidas
Created February 22, 2016 08:06
Show Gist options
  • Save aldidas/a8c093f6db4ec5069b62 to your computer and use it in GitHub Desktop.
Save aldidas/a8c093f6db4ec5069b62 to your computer and use it in GitHub Desktop.
express.js app database configuration
var Sequelize = require('sequelize'),
sequelize = new Sequelize('aes_db', null, null, {
host: 'localhost',
dialect: 'sqlite',
pool: {
max: 5,
min: 0,
idle: 10000
},
storage: './data.sqlite'
});
exports.config = {
db: sequelize
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment