sequelize-date

0.0.2 • Public • Published

Sequelize-date

npm version Build Status Windows Build status codecov Bountysource Slack Status npm downloads node License semantic-release Greenkeeper badge

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
})

Documentation

v4 (stable) documentation

v4 upgrade guide

v3 documentation

Dependents (0)

Package Sidebar

Install

npm i sequelize-date

Weekly Downloads

3

Version

0.0.2

License

MIT

Last publish

Collaborators

  • xiaod