On 14 Apr 2006 11:25:05 -0400, Ted Zlatanov <[EMAIL PROTECTED]> wrote: > On 9 Mar 2006, [EMAIL PROTECTED] wrote: >> package MyDBObject; >> >> use base 'Rose::DB::Object'; >> use Rose::DB::Object::Helpers qw(load_or_insert load_speculative); >> >> My question is, what methods should be in the helpers set? The two listed >> above are all I have so far. Suggestions welcome! > > Maybe these two should be automatic if you do > > use base 'Rose::DB::Object::CDBICompat'; > > and in general, these helpers seem appropriate for ex-Class::DBI > people like myself who like RDBO but have old code that is hard to > rewrite completely :)
The existing helpers are not CDBI-compatible, though. If someone wants to make a CDBICompat layer, I think it should be a subclass of RDBO, not a set of helpers. Also, I'm wary of adding "partial" compatibility through helpers because once the "c" word enters the mind of the user, 100% compatibility is inevitably expected. -John ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object