基于 Node.js 的 ORM,sequelize 3.2.0 發布

jopen 9年前發布 | 6K 次閱讀 sequelize

Sequelize.js 提供對 MySQL,MariaDB,SQLite 和 PostgreSQL 數據庫的簡單訪問,通過映射數據庫條目到對象,或者對象到數據庫條目。簡而言之,就是 ORM(Object-Relational-Mapper)。Sequelize.js 完全是使用 JavaScript 編寫,適用于 Node.js 的環境。

sequelize 3.2.0 發布,更新內容如下:

  • [FEATURE] Add support for new option targetKey in a belongs-to relationship for situations where the target key is not the id field.

  • [FEATURE] Add support for keyword after in options of a field (useful for migrations), only for MySQL. #3166

  • [FEATURE] There's a new sequelize.truncate function to truncate all tables defined through the sequelize models #2671

  • [FEATURE] Add support for MySQLs TINYTEXT, MEDIUMTEXT and LONGTEXT. #3836

  • [FEATURE] Provide warnings if you misuse data types. #3839

  • [FIXED] Fix a case where Postgres arrays containing JSONB type was being generated as JSON type.

  • [FIXED] Fix a case where type in sequelize.query was not being set to raw. #3800

  • [FIXED] Fix an issue where include all was not being properly expanded for self-references #3804

  • [FIXED] Fix instance.changed regression to not return false negatives for not changed null values #3812

  • [FIXED] Fix isEmail validator to allow args: true #3770

  • [FIXED] Fix all occasions where options.logging was not used correctly #3834

  • [FIXED] Fix Model#destroy() to correctly use options.transaction

  • [FIXED] Fix QueryInterface#showIndex() to correctly pass on options.transaction

該版本現已提供下載:sequelize-3.2.0.zip

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