This commit is contained in:
2017-01-23 04:59:10 +08:00
parent f5dfeaa123
commit 8ed5794348
11 changed files with 140 additions and 39 deletions

12
src/lib/sequelize.js Normal file
View File

@ -0,0 +1,12 @@
import Sequelize from 'sequelize'
import { SystemConfig } from '../config/main'
export default new Sequelize(SystemConfig.mysql_database, SystemConfig.mysql_user, SystemConfig.mysql_password, {
host: SystemConfig.mysql_host,
dialect: 'mysql',
pool: {
max: 50,
min: 0,
idle: 10000
}
})