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

jopen 9年前發布 | 6K 次閱讀 Sequelize.js

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


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