123456789101112131415161718192021222324252627282930 |
- /*
- * @Author: fuyu
- * @Date: 2021-03-22 18:46:15
- * @LastEditors: fuyu
- * @LastEditTime: 2021-03-26 11:28:14
- * @FilePath: /202103/code/sql_merge/src/dao_old/db/sequelize.js
- */
- import Sequelize from 'sequelize'
- import config from '../../../config'
- const DB = config['old_db_config']
- export default new Sequelize(DB.database, DB.username, DB.password, {
- host: DB.host,
- port: DB.port,
- dialect: DB.db_type,
- dialectOptions: {
- charset: 'utf8mb4',
- // collate: 'utf8mb4_unicode_520_ci',
- bigNumberStrings: true,
- supportBigNumbers: true
- },
- pool: {
- max: 50,
- min: 10,
- idle: 10000
- },
- timezone: '+08:00' //修改时区为东八区
- })
|