hehe since my DM adapter was mentioned I guess I should give my opinion. I actually agree with Kyle and I would probably not use an adapter unless Tokyo Cabinet can handle conditional statements.
A good example would be couchDB. I don't think the adapter makes a lot of sense. Don't get me wrong, it's great to have one and help people getting started, but DM is very much RDBMS oriented, with a concept of clean/dirty objects, collections, relationships. I feel, Couchrest (by Chris Anderson) is a better fit since it's a lighter layer between your models and your data. -Matt On Wed, Oct 22, 2008 at 10:14 PM, Daniel N <[EMAIL PROTECTED]> wrote: > > > On Thu, Oct 23, 2008 at 3:33 PM, Jarkko Laine <[EMAIL PROTECTED]> wrote: > >> >> On 23.10.2008, at 3.16, Kyle Drake wrote: >> >> > >> > Tokyo Cabinet is a cool power tool, but it's not a relational >> > database. It only does key/value store. I'm not sure there would be >> > much of a point to making a DM interface, since you wouldn't be able >> > to use most of the methods in it. I think it would be much easier to >> > just write a set of model methods for getting/setting the data. >> >> DataMapper is not just for relational databases: >> http://merbist.com/2008/09/29/write-your-own-custom-datamapper-adapter/ >> >> //jarkko >> >> -- >> Jarkko Laine >> http://jlaine.net >> http://dotherightthing.com >> http://odesign.fi >> > > There's only a handful of methods you need to use to setup for a DataMapper > adapter as defined in the AbstractAdapter. Not sure how you'd go with a > model id though although you can use composite keys etc... doesn't seem to > sit... > > ~Daniel > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/merb?hl=en -~----------~----~----~----~------~----~------~--~---
