[Dbix-class] Integration with Moose (DBIx-enabled Moose objects)?

Jess Robinson castaway at desert-island.me.uk
Sat Aug 23 11:26:32 BST 2008



On Sat, 23 Aug 2008, Alex Peters wrote:

> Hi,
>
> I'm starting a new project using Moose[1] and am wondering how
> best to handle persistent storage of these Moose objects.
>
> If I weren't using Moose, DBIx::Class would be the obvious
> answer here.  However, in a way Moose and DBIx::Class seem to
> overlap in terms of the functionality that they provide (auto-
> generated accessors/mutators, etc.).

They do, but they also don't interfere with each other, and using them 
together works just fine. Reaction[0] uses this principle to good effect.

> There seems to be very little information on the internet about
> using the two together, and I've scanned this year's posts to
> this mailing list for any references to Moose and found almost
> nothing[2] on this matter.

The reason you don't see many posts is because nobody is complaining ;)

> So: has anyone here written Moose classes that feature DBIx::
> Class functionality?  What approaches have been tried and how
> do they rank in usability and maintainability?

See the examples in the Reaction dist.

[0] Reaction - http://search.cpan.org/dist/Reaction

Jess




More information about the DBIx-Class mailing list