node中有同时支持mongo redis mysql的ORM框架吗?
发布于 9 年前 作者 wp3xpp 6728 次浏览 最后一次编辑是 8 年前 来自 问答

如题

9 回复

Sails.js 号称支持任意数据库,包括楼主说的这三样。

Any database. Sails bundles a powerful ORM, Waterline, which provides a simple data access layer that just works, no matter what database you’re using. In addition to a plethora of community projects, officially supported adapters exist for MySQL, MongoDB, PostgreSQL, Redis, and local disk. http://sailsjs.org/features#?database

没用过Sails.js。有用过的给点建议。

sails.js是一个mvc模式的web框架呀,我只想找一个轻量级ORM框架

Sails.js用的是waterline github地址:https://github.com/balderdashy/waterline

waterline不错,随着sails诞生的,后来因为比较好用被抽离出来作为一个框架了。

一直在潜水,今天冒泡 回答个问题。 楼主 Google 下 Sequelize。

@G-martin

Sequelize is a promise-based ORM for Node.js and io.js. It supports the dialects PostgreSQL, MySQL, MariaDB, SQLite and MSSQL and features solid transaction support, relations, read replication and more.

回到顶部