Sequelize.js 3.5.1 发布,Node.js 的 ORM

jopen 6年前

Sequelize.js 提供对 MySQL,MariaDB,SQLite 和 PostgreSQL 数据库的简单访问,通过映射数据库条目到对象,或者对象到数据库条目。简而言之,就是 ORM(Object-Relational-Mapper)。Sequelize.js 完全是使用 JavaScript 编写,适用于 Node.js 的环境。

Sequelize.js 3.5.1 发布,此版本更新内容如下:

  • [FIXED] Fix bug with nested includes where a middle include results in a null value which breaks $findSeperate.

同一天还发布了 Sequelize 3.5.0,更新内容如下:

  • [ADDED] include.seperate with include.limit support for HasMany associations.

  • [ADDED] Added default validation based on attribute types. #3472. The validation cannot be disabled. If you really want to completely disable it, you can remove the validate function from the corresponding datatype, but know that this permanently disables the validation.

  • [ADDED] describeTable  now marks the primary key (Reroll of #3703)

  • [ADDED] Automatically determine the version of the database upon first connection #4192. This will be useful going forward in order to provide support for older database versions.

  • [ADDED] addScope #3963

  • [FIXED] Fix findOrCreate regression trying to add a transaction even if there is none

  • [FIXED] Fix save to be noop when nothing changed

  • [FIXED] Call conformOptions on default scope #4157

  • [FIXED] Call conformOptions on scopes returned by functions #3991

  • [FIXED] Calling validateIncludedElements should not add an aliassed primary key multiple times #4127

  • [FIXED] Handle scoped model in includes properly #3700

  • [FIXED] Enum naming with schemas #3171 and #3563

  • [FIXED] Prevent polution of the lodash object by using runInContext #2281

下载:https://github.com/sequelize/sequelize/archive/v3.5.1.zip