Sequelize.js 3.5.1 发布,Node.js 的 ORM
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.seperatewithinclude.limitsupport 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
validatefunction from the corresponding datatype, but know that this permanently disables the validation. -
[ADDED]
describeTablenow 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
conformOptionson default scope #4157 -
[FIXED] Call
conformOptionson scopes returned by functions #3991 -
[FIXED] Calling
validateIncludedElementsshould not add an aliassed primary key multiple times #4127 -
[FIXED] Handle scoped model in includes properly #3700
-
[FIXED] Prevent polution of the lodash object by using
runInContext#2281
下载:https://github.com/sequelize/sequelize/archive/v3.5.1.zip。