[Dbix-class] minimalistic Moose / DBIC glue module

Eden Cardim edencardim at gmail.com
Wed Jun 23 04:09:08 GMT 2010


>>>>> "BUCHMULLER" == BUCHMULLER Norbert <norbi.lists at nix.hu> writes:
    BUCHMULLER> So I came up with a more minimalistic approach that only
    BUCHMULLER> solves the above two problems and nothing else:

    BUCHMULLER> 1. it installs Moose accessors on the Result (Row)
    BUCHMULLER> objects that perform get_column()/set_column() under the
    BUCHMULLER> hood

    BUCHMULLER> 2. it saves you from repeating the column definition
    BUCHMULLER> ("has" and "->add_columns")

    BUCHMULLER> You can find the code here:
    BUCHMULLER> http://github.com/mendel/MooseX-DBIC-AddColumn

Have you considered using bridge objects + delegation instead? The
separation between storage and business logic is something you're going
to want in the future anyway.



More information about the DBIx-Class mailing list