You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just had a look at your changes. I think ideally we would have it so that the Report classes etc. always are the same for any ORM and we just change the ORM adapter code for them (e.g. by including different modules or something similar). I guess there will be a lot of duplicated code otherwise.
I'm not so sure. I think the best approach for starters is to implement the DataMapper adapter on its own, trying to mirror the AR API as close as possible. Only then will you be able to determine if it is feasible to create a "generic" mapper with conditional code or metamagic in order to support multiple ORMs.
I'm afraid the "one-suit-fit-all" result will likely be code that is very hard to read, follow and maintain... we will see.
Support for DataMapper would be nice especiall as Rails 3 will make it easy to use DataMapper.
The text was updated successfully, but these errors were encountered: