?Node.js 的 ORM 框架,Sequelize 2.0.0RC3 發布
Sequelize.js 提供對 MySQL,MariaDB,SQLite 和 PostgreSQL 數據庫的簡單訪問,通過映射數據庫條目到對象,或者對象到數據庫條目。簡而言之,就是 ORM(Object-Relational-Mapper)。Sequelize.js 完全是使用 JavaScript 編寫,適用于 Node.js 的環境。
Sequelize 2.0.0RC3 發布,此版本現已提供下載(v2.0.0-rc3.zip),更新內容如下:
[FEATURE] Added the possibility of removing multiple associations in 1 call #2338
[FEATURE] Undestroy method for paranoid models #2540
[FEATURE] Support for UPSERT
[BUG] Add support for
field
named the same as the attribute inreload
,bulkCreate
andsave
#2348[BUG] Copy the options object in association getters. #2311
[BUG]
Model#destroy()
now supportsfield
, this also fixes an issue withN:M#removeAssociation
andfield
[BUG] Customized error message can now be set for unique constraint that was created manually (not with sync, but e.g. with migrations) or that has fields with underscore naming. This was problem at least with postgres before.
[BUG] Fixed a bug where plain objects like
{ in: [...] }
were not properly converted to SQL when combined with a sequelize method (fn
,where
etc.). Closes #2077[BUG] Made the default for array search in postgres exact comparison instead of overlap
[BUG] Allow logging from individual functions even though the global logging setting is false. Closes #2571
[BUG] Allow increment/decrement operations when using schemata
[BUG] Allow createTable with schema
[BUG] Fix some issues with findAndCount and include
[INTERNALS] Update
inflection
dependency to v1.5.2[REMOVED] Remove query generation syntactic sugar provided by
node-sql
, as well as the dependency on that module
</ul>
更多內容請看更新日志。