So I noticed DataMapper has been adjusted to work with Mongo
Is ActiveRecord open to other databases too? Possible?
And yes I know there are things like MongoMapper and MongoID
But I like the new ActiveRecord syntax, so wondering if the new rewrite means it is easier for ActiveRecord to sit ontop of a NoSQL DB
At the base of Active Record is Arel which at the moment is custom built to support generating SQL queries. Much of what its algebra can express does not translate well to Mongo. There is no Arel –> Mongo adapter, though in theory someone may be able to do so.
However, Active Record 3 is now built on top of Active Model if you can make your ORM quack like Active Model, the various action pack helpers will be able to understand your ORM.
So if you build an active model based ORM for Mongo is built, you will be able to switch it in with rails 3.