Node.js ORM 框架 Sequelize.js 2.0.0RC4 发布

jopen 9年前

Sequelize是一个易于使用,支持多SQL方言(dialect)的对象-关系映射框架(ORM),这个库完全采用JavaScript开发并且能 够用在Node.JS环境中。它当前支持MySQL, MariaDB, SQLite 和 PostgreSQL 数据库。。Sequelize.js 完全是使用 JavaScript 编写,适用于 Node.js 的环境。

Sequelize 2.0.0RC4 发布,此版本更新内容如下:

  • [INTERNALS] 更新 inflection 依赖到 v1.5.3

  • [FEATURE] 使用错误对象代替连接错误的字符串错误信息 #2576

  • [FEATURE] Support for updating fields on duplicate key in bulk update (mysql only) #2692

  • [FEATURE] 基础支持 Microsoft SQL Server

  • [INTERNALS] Deprecate migration logic. This is now implemented in umzug and the CLI.

  • [BUG] Fixed various inconsistencies with Instance.update and how it behaves together with create, fields and more.

  • [BUG] Fixed crash/bug when using include.where together with association.scope

  • [BUG] Fixed support for Instance.destroy() and field for postgres.

向后兼容改进

  • 一些连接错误的字符串错误信息被实际的错误实例替换

更多信息请看更新日志