sequelize-date
v0.0.2
Published
sequelize API
Downloads
8
Maintainers
Readme
Sequelize-date
Sequelize-date是个人对Sequelize进行修复的一个npm,与Sequelize API兼容。
Example
/**
*增加isParse禁止Sequelize进行类型,这导致mysql的{dateStrings: 'DATETIME'}设置作废,而且影响性能【循环遍历】
*isParse默认为true,类型为Boolean
**/
const sequelize = new Sequelize(config.database, config.username, config.password, {
host: config.host,
dialect: 'mysql',
pool: {
max: 5,
min: 0,
idle: 10000
},
dialectOptions: {
dateStrings: 'DATETIME',
},
isParse:false
})