I'm adding a Rose::DB::Object::Helpers module to house all of the "extra"
methods that people might want, but that I don't want crowding
Rose::DB::Object itself.  Example usage:

    package MyDBObject;

    use base 'Rose::DB::Object';
    use Rose::DB::Object::Helpers qw(load_or_insert load_speculative);
    ...

    $o = MyDBObject->new(...);
    $o->load_or_insert;

You can also rename on import:

    use Rose::DB::Object::Helpers { load_or_insert => 'find_or_create' };

and there are tags:

    use Rose::DB::Object::Helpers qw(:all);

My question is, what methods should be in the helpers set?  The two listed
above are all I have so far.  Suggestions welcome!

-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&kid=110944&bid=241720&dat=121642
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to