Sequelize v3.24.1 和 v4.0.0
欢迎加入运维网交流群:263444886Sequelize v4.0.0-1 发布了,Sequelize.js 提供对 MySQL,MariaDB,SQLite 和PostgreSQL 数据库的简单访问,通过映射数据库条目到对象,或者对象到数据库条目。简而言之,就是 ORM(Object-Relational-Mapper)。Sequelize.js 完全是使用 JavaScript 编写,适用于 Node.js 的环境。
v4.0.0-1 更新内容:
[*] Removed modelManager parameter from Model.init() #6437
[*] Made Model.init() behave like sequelize.define() (hooks are called and options have proper defaults) #6437
[*] restartIdentity option for truncate in postgres #5356
[*] Migrated to node-mysql2 for prepared statements #6354
[*] SQLCipher support via the SQLite connection manager
[*] Range type bounds now default to postgres default [) (inclusive, exclusive) #5990
[*] Support for range operators #5990
[*] Broken transactions in MySQL #3568
[*] Model.count don't include attributes #5057
[*] Updated inflection dependency and pinned version and expose all used inflectionmethods on Utils
[*] Sequelize.useInflection method
[*] hasOne throws error on update with a primary key #6069
[*] Model.count gives SQL syntax error when using distinct #4840
[*] Model.count now allow specifying column to count on, use options.col #4442
[*] DEBUG support #2852
[*] Intensive connection logging #851
[*] Only belongsTo uses as to construct foreign key - revert of #5957 introduced in 4.0.0-0
[*] Sequelize.Promise is now an independent copy of bluebird library #5974
[*] before/after Save hook #2702
[*] Remove hooks by reference #6155
[*] before/after Upsert hook #3965
[*] Modifying options in beforeFind throws error #5675
[*] classMethods and instanceMethods #5869
[*] Sequelize.Validator is now an independent copy of validator library
[*] Don't patch validator library globally #6196
[*] ignore for create was renamed to ignoreDuplicates #6138
[*] Index names not quoted properly in removeIndex #5888
[*] Int4 range not properly parsed #5747
[*] upsert does not fail anymore on not null validations #5711
[*] Don't remove includes from count queries and unify findAndCount and count queries. #6123
[*] Model.count with options.col and options.include works properly now
[*] bulkCreate don't map fields to attributes properly #4476#3908#4103#3764#3789#4600
[*] sync don't handle global options.logging properly #5788
[*] attribute:[] throw errors with include or through #5078 #4222 #5958 #5590 #6139#4866 #6242
[*] GEOMETRY and GEOGRAPHY SQL injection attacks #6194
[*] DECIMAL now supports UNSIGNED / ZEROFILL (MySQL) #2038
[*] Generate correct SQL of nested include when quoteIdentifiers is false. (Postgres) #6351
[*] Generate correct SQL for JSON attributes with quote. #6406
[*] Nested query return correct result when quoteIdentifiers is false. (Postgres) #6363
[*] Fixed an issue where changing multiple ENUM columns in PostgreSQL could break. #6203
[*] Add parent, original and sql properties to UniqueConstraintError
v4.0.0-1 下载:
[*] Source code (zip)
[*] Source code (tar.gz)
v3.24.1 更新内容;
[*] Add parent, original and sql properties to UniqueConstraintError
v3.24.1 下载:
[*] Source code (zip)
[*] Source code (tar.gz)
页:
[1]