是否有适用于Node.js的Postgres兼容ORM? [英] Any Postgres compatible ORM for Node.js?

查看:104
本文介绍了是否有适用于Node.js的Postgres兼容ORM?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为Node.js下的postgres寻找一个好的ORM,它支持模型之间的关系声明和字段验证.我已经搜索了很长时间,无法获得任何令人满意的结果.也许有人可以指出我在研究过程中错过的项目. 谢谢.

I'm seeking for a good ORM for postgres under Node.js, one that supports declaration of relationships beetween models, and fields validation. I've searched during a long time and cannot get any satisfying results. Maybe someone can point me to a project I missed during my researches. Thx.

推荐答案

node-orm2 看起来不错:支持关联,验证器以及mysql,postgres和mongo(测试版)

node-orm2 looks good: supports association, validators, and mysql, postgres, and mongo (in beta)

更新:node-orm2程序包不再维护.可能的替代方法包括书架序列化.

UPDATE: The node-orm2 package is no longer maintained. Possible alternatives include bookshelf or sequelize.

这篇关于是否有适用于Node.js的Postgres兼容ORM?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆