发布于 2015-09-30 15:50:18 | 249 次阅读 | 评论: 0 | 来源: 网友投递
Sequelize Node.js的ORM 框架
Sequelize.js 提供对 MySQL,MariaDB,SQLite 和 PostgreSQL 数据库的简单访问,通过映射数据库条目到对象,或者对象到数据库条目。简而言之,就是 ORM(Object-Relational-Mapper)。Sequelize.js 完全是使用 JavaScript 编写,适用于 Node.js 的环境。
Sequelize.js 3.10.0 发布,此版本更新内容如下:
[ADDED] support search_path
for postgres with lots of schemas #4534
[ADDED] Expose Association constructor as Sequelize.Association
[ADDED] beforeSync/afterSync/beforeBulkSync/afterBulksync hooks #4479
[FIXED] Calling set with dot.separated key on a JSON/JSONB attribute will not flag the entire object as changed #4379
[FIXED] instances returned from bulkCreate
now has isNewRecord: false
and should be updateable if using returning: true
with dialects that support it.
[FIXED] Find with Include with a where clause generates wrong SQL #3940
[FIXED] ON DELETE constraint should default to CASCADE if foreignKey has allowNull: false] #2831
下载:https://github.com/sequelize/sequelize/archive/v3.10.0.zip。
Sequelize.js 提供对 MySQL,MariaDB,SQLite 和 PostgreSQL 数据库的简单访问,通过映射数据库条目到对象,或者对象到数据库条目。简而言之,就是 ORM(Object-Relational-Mapper)。Sequelize.js 完全是使用 JavaScript 编写,适用于 Node.js 的环境。