http://www.perlmonks.org?node_id=709820


in reply to Re: Object Persistence, Moose and playing nicely with ActiveRecord
in thread Object Persistence, Moose and playing nicely with ActiveRecord

Waiting for moosification of DBIx::Class - I did find something demonstrating Moose and DBIx::Class playing together, but the repeated declarations gave me the shudders. It seems as if it shouldn't be hard to extend Moose's declaration syntax to implement something like MooseX::DBI, but it's one of those Simple Matter Of Programming things isn't it? Easy in principle, but tedious in practice.
  • Comment on Re^2: Object Persistence, Moose and playing nicely with ActiveRecord

Replies are listed 'Best First'.
Re^3: Object Persistence, Moose and playing nicely with ActiveRecord
by stvn (Monsignor) on Sep 09, 2008 at 03:01 UTC
    I did find something demonstrating Moose and DBIx::Class playing together, but the repeated declarations gave me the shudders.

    You can take a look at the as-yet-unreleased MooseX::DBIC here which provides a Moose-ish layer over the top of DBIx::Class and (IMO at least) nicely merges the strengths of DBIx::Class with the meta-goodness of Moose. It is not 100% feature complete, there are still some bridging between more obscure DBIC features to be done. But fwiw, this is currently used in a production application and so far so good.

    -stvn
      I realise that this probably isn't the forum for it, but can I just say publicly that stvn rocks!

        /me blushes

        btw, if you find you want features and are inclined to write them, just ask and a commit-bit ye shall receive :)

        -stvn