[英]Why we use ORM or ODM to manage any graphDB?
Hey everyone I am working on nodeJS app. 大家好,我正在开发nodeJS应用。 I searched some modules to manage my database (orientdb).
我搜索了一些模块来管理我的数据库(orientdb)。 My question is: Why we use any ORM or ODM (or why is it recommenced), because there is a module which can provide many functions to manage DB.
我的问题是:为什么我们使用任何ORM或ODM(或为什么建议使用它),因为有一个模块可以提供许多功能来管理数据库。 I am still confused what should I use orientorm ( https://github.com/mav-im/orientorm ) or oriento ( https://github.com/codemix/oriento )
我仍然困惑我应该使用orientorm( https://github.com/mav-im/orientorm )还是oriento( https://github.com/codemix/oriento )
Thank in advance.. 预先感谢..
Depending on the goal and depending on the ORM, ORMs have the advantage of adding support for: 根据目标和ORM,ORM的优点是增加了对以下方面的支持:
All OrientDB ORM's I've seen for node.js expose Oriento, so that makes it easy to access the underlying oriento methods for doing more complex stuff. 我在node.js上看到的所有OrientDB ORM都公开了Oriento,因此可以轻松访问底层的Oriento方法来执行更复杂的工作。
Having said all this I recommend you try the waterline ORM with waterline-orientdb adapter. 说了这么多,我建议您尝试使用带有waterline-orientdb适配器的水线 ORM。 Waterline is an adapter based ORM with support for multiple databases (including support for associations between databases ).
Waterline是基于适配器的ORM,支持多个数据库(包括对数据库之间的关联的支持)。 Waterline-orientdb is the adapter for OrientDB which is based on Oriento.
Waterline-orientdb是基于Oriento的OrientDB适配器。 If at any point you need to use Oriento you can call
.getDB()
to access Oriento's instance. 如果您需要使用Oriento,则可以调用
.getDB()
来访问Oriento的实例。
Oriento is much more mature and supported. Oriento更加成熟和受支持。 I suggest you to go with it.
我建议你随它去。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.