?Node.js 的 ORM 框架,Sequelize 2.0.0RC3 發布

jopen 10年前發布 | 6K 次閱讀 ?Sequelize

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 in reload, bulkCreate and save #2348

  • [BUG] Copy the options object in association getters. #2311

  • [BUG] Model#destroy() now supports field, this also fixes an issue with N:M#removeAssociation and field

  • [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> 更多內容請看更新日志

     本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
     轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
     本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!