Sequelize v4.0.0-1 發布 -?Node.js 的 ORM

Sequelize.js 提供對 MySQL,MariaDB,SQLite 和 PostgreSQL 數據庫的簡單訪問,通過映射數據庫條目到對象,或者對象到數據庫條目。簡而言之,就是 ORM(Object-Relational-Mapper)。Sequelize.js 完全是使用 JavaScript 編寫,適用于 Node.js 的環境。
更新日志
- [CHANGED] Removed
modelManagerparameter fromModel.init()#6437 - [FIXED] Made
Model.init()behave likesequelize.define()(hooks are called and options have proper defaults) #6437 - [ADDED]
restartIdentityoption for truncate in postgres #5356 - [INTERNAL] Migrated to
node-mysql2for prepared statements #6354 - [ADDED] SQLCipher support via the SQLite connection manager
- [CHANGED] Range type bounds now default to postgres default
[)(inclusive, exclusive) #5990 - [ADDED] Support for range operators #5990
- [FIXED] Broken transactions in
MySQL#3568 - [FIXED]
Model.countdon't include attributes #5057 - [INTERNALS] Updated
inflectiondependency and pinned version and expose all usedinflectionmethods onUtils - [ADDED]
Sequelize.useInflectionmethod - [FIXED]
hasOnethrows error on update with a primary key #6069 - [FIXED]
Model.countgives SQL syntax error when usingdistinct#4840 - [ADDED]
Model.countnow allow specifying column to count on, useoptions.col#4442 - [ADDED]
DEBUGsupport #2852 - [ADDED] Intensive connection logging #851
- [FIXED] Only
belongsTousesasto construct foreign key - revert of #5957 introduced in 4.0.0-0 - [CHANGED]
Sequelize.Promiseis now an independent copy ofbluebirdlibrary #5974 - [ADDED] before/after Save hook #2702
- [ADDED] Remove hooks by reference #6155
- [ADDED] before/after Upsert hook #3965
- [FIXED] Modifying
optionsinbeforeFindthrows error #5675 - [REMOVED]
classMethodsandinstanceMethods#5869 - [CHANGED]
Sequelize.Validatoris now an independent copy ofvalidatorlibrary - [FIXED] Don't patch
validatorlibrary globally #6196 - [CHANGED]
ignorefor create was renamed toignoreDuplicates#6138 - [FIXED] Index names not quoted properly in
removeIndex#5888 - [FIXED]
Int4range not properly parsed #5747 - [FIXED]
upsertdoes not fail anymore on not null validations #5711 - [FIXED] Don't remove includes from count queries and unify findAndCount and count queries. #6123
- [FIXED]
Model.countwithoptions.colandoptions.includeworks properly now - [FIXED]
bulkCreatedon't map fields to attributes properly #4476#3908#4103#3764#3789#4600 - [FIXED]
syncdon't handle globaloptions.loggingproperly #5788 - [FIXED]
attribute:[]throw errors withincludeorthrough#5078 #4222 #5958 #5590 #6139#4866 #6242 - [SECURITY]
GEOMETRYandGEOGRAPHYSQL injection attacks #6194 - [FIXED]
DECIMALnow supportsUNSIGNED/ZEROFILL(MySQL) #2038 - [FIXED] Generate correct SQL of nested include when quoteIdentifiers is false. (Postgres) #6351
- [FIXED] Generate correct SQL for JSON attributes with quote. #6406
- [FIXED] Nested query return correct result when quoteIdentifiers is false. (Postgres) #6363
- [FIXED] Fixed an issue where changing multiple ENUM columns in PostgreSQL could break. #6203
- [FIXED] Add
parent,originalandsqlproperties toUniqueConstraintError
下載
本站原創,轉載時保留以下信息:
本文轉自:深度開源(open-open.com)
原文地址:http://www.baiduhome.net/news/view/4c533c34
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!