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.seperate
withinclude.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] Prevent polution of the lodash object by using
runInContext
#2281
下載:https://github.com/sequelize/sequelize/archive/v3.5.1.zip。