发布于 2016-03-22 00:00:06 | 121 次阅读 | 评论: 0 | 来源: 网友投递
Sequelize Node.js的ORM 框架
Sequelize.js 提供对 MySQL,MariaDB,SQLite 和 PostgreSQL 数据库的简单访问,通过映射数据库条目到对象,或者对象到数据库条目。简而言之,就是 ORM(Object-Relational-Mapper)。Sequelize.js 完全是使用 JavaScript 编写,适用于 Node.js 的环境。
Sequelize 3.20.0 发布了,
更新日志:
[ADDED] beforeCount
hook #5209
[ADDED] validationFailed
hook #1626
[ADDED] Support for IEEE floating point literals in postgres and sqlite #5194
[FIXED] addColumn
with reference in mysql #5592
[FIXED] findAndCountAll
generates invalid SQL, subQuery moves to LEFT OUTER JOIN #5445
[FIXED] count
methods pollute the options.includes #4191
[FIXED] Invalid SQL generated when using group option along with attributes #3009
[FIXED] Mark index as unique: true
when type: 'UNIQUE'
. Fixes #5351
[FIXED] Improper escaping of bound arrays of strings on Postgres, SQLite, and Microsoft SQL Server