发布于 2015-01-21 01:30:41 | 214 次阅读 | 评论: 0 | 来源: 网友投递
Sequelize Node.js的ORM 框架
Sequelize.js 提供对 MySQL,MariaDB,SQLite 和 PostgreSQL 数据库的简单访问,通过映射数据库条目到对象,或者对象到数据库条目。简而言之,就是 ORM(Object-Relational-Mapper)。Sequelize.js 完全是使用 JavaScript 编写,适用于 Node.js 的环境。
Sequelize 2.0.0RC8 发布,此版本更新内容如下:
[FEATURE] CLS Support. CLS is also used to automatically pass the transaction to any calls within the callback chain when using sequelize.transaction(function() ...
.
[BUG] Fixed issue with paranoid deletes and deletedAt
with a custom field.
[BUG] No longer crahes on where: []
[FEATURE] Validations are now enabled by default for upsert.
[FEATURE] Preliminary support for include.through.where
[SECURITY/BUG] Fixed injection issue in direction param for order
Sequelize.js 提供对 MySQL,MariaDB,SQLite 和 PostgreSQL 数据库的简单访问,通过映射数据库条目到对象,或者对象到数据库条目。简而言之,就是 ORM(Object-Relational-Mapper)。Sequelize.js 完全是使用 JavaScript 编写,适用于 Node.js 的环境。