[Dbix-class] minimalistic Moose / DBIC glue module
Eden Cardim
edencardim at gmail.com
Tue Jun 29 00:24:42 GMT 2010
>>>>> "Octavian" == Octavian Rasnita <octavian at fcc.ro> writes:
Octavian> What do you think it is the preferable way of passing the
Octavian> parameters to the custom methods defined in the ResultSet
Octavian> class for other more complex methods like ->search(),
Octavian> update(), create(), update_or_create()...? (as a list of
Octavian> parameters, or as a hash?)
You should create an API that makes sense for your system
requirements before you even think of writing ->search, ->create(),
etc. methods. Once you've got the API nailed, all you do is implement
the mapping to the backend of choice (DBIC in our case), once you're at
this level, anything that gets the mapping job done will suffice.
More information about the DBIx-Class
mailing list