On Tue, May 25, 2010 at 12:28 PM, BUCHMULLER Norbert <[email protected]> wrote:
> Hi Guys,
>
> at the company where I work we are trying to make DBIC and Moose
> befriend: ie. making the Result (Row) objects regular Moose objects (as
> much as reasonable), so that we can use type constraints, triggers, ... on
> columns as if they were normal attributes.
This might be a touch simplistic, but could what you're trying to do
be also achievable by using method modifiers via
Class::Method::Modifiers (::Fast, too)? I realize it's not what
you're going for (full-blown DBIC on Moose), but it would seem to
enable what you want -- e.g. triggers and type constraint checking in
the form of before or after modifiers on the accessors; coercion via
around -- without doing quite as much violence to the underlying
structure.
-Chris
--
Chris Weyl
Ex astris, scientia
_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]