Update: I have just added support for mapping attributes to different ORMs (ActiveRecord and Sequel for now) for the same entity!
On Tuesday, 19 March 2013 15:09:40 UTC+11, Fred Wu wrote: > > Hey guys, > > Over the past few days I've started experimenting with the idea of > implementing the repository pattern on top of ActiveRecord (yes, it sounds > scary). The motivation came after we were about to kick start a relatively > large scale system. It would be great to retain the powerfulness of > ActiveRecord as well as making our app easier to maintain and test. It is > basically a compromise, a stop gap, if you will. > > I've always liked Datamapper, and Datamapper 2 is shaping up nicely but > looks like it is still a far way away. So I decided to base my > experimentation on top of utilising both ActiveRecord and Virtus, the > attributes component of Datamapper 2. > > Eventually I want to add support for using multiple data providers > (ActiveRecord, Sequel and Datamapper 2, etc) per repository for the same > entity, among other things. > > You can check out what I've been doing here: > https://github.com/fredwu/datamappify > > It is an experiment, and it's still too early to see how useful and > practical it'll become, but I'd love to get some feedback from you guys! > > Thanks! > -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/datamapper?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
