3 ms·
I would claim thare are benefits in a framework having a similar API for both for SQL-ORM and NoSQL-ODM. This has already been done in the Ruby on Rails world,
by kennu 14y ago
I would claim thare are benefits in a framework having a similar API for both for SQL-ORM and NoSQL-ODM. This has already been done in the Ruby on Rails world, where ActiveRecord and Mongoid exist in parallel and have similar interfaces. This makes it much easier for third party modules to support both of them.
Perhaps ideally, the ORM API is a superset of the ODM API with added support for transactions and deeper relations etc. Apps that don't need those features can then easily support both.
- zeeg 14y agoWhat benefits? They're completely different technologies. They share very few characteristics, and many apps which are built on SQL using the ORM would not "just work" on a NoSQL engine. You also are only talking about MongoDB. Who cares about MongoDB? Maybe you do. What about the guy using Cassandra? Or Redis? Or Couchbase? etc etc etc They all have very different properties, and the only thing they have in common is that they store data, and some of them allow you to query on the data.