Hello Doran,
Take a look at MooseX-DBIC<https://svn.iinteractive.com/repos/cpan/MooseX-DBIC/>
However there is a problem with MooseX::DBIC (or is it just me?), which i
was going to email to the list, but rather would tell about it in this
thread, hope you don't mind. When i'm using database in anyway (select,
insert), i'm getting the following:

Subroutine initialize redefined at /usr/lib/perl5/site_perl/5.10/Class/C3.pm
line 70.
Subroutine uninitialize redefined at
/usr/lib/perl5/site_perl/5.10/Class/C3.pm line 88.
Subroutine reinitialize redefined at
/usr/lib/perl5/site_perl/5.10/Class/C3.pm ine 101.

Both Moose and DBIx::Class are using Class::C3 and i think that's where the
problem arise. All functionality is working properly, but that warning is
annoying me.

2008/12/15 Doran L. Barton <f...@iodynamics.com>

> Hello. I am a 11-year Perl programmer with lots of CGI, mod_perl, and some
> Catalyst web-development under my belt as well as a fair share of systems
> administration scripting as well.  I am happy to be a member of the Moose
> list.
>
> I've investigated Moose enough to have a feeling I really want to learn
> more
> about it. I have a web application I'm designing and would like to put
> Moose
> through the paces with it, but am having trouble figuring out how to best
> lay
> things out.
>
> The application will use DBIx::Class for database access. I'm having
> trouble
> figuring out how to mix Moose and DBIx::Class in my objects since they both
> magically create object methods. Does anyone have examples they could
> share?
> Something real simple, like the oft-used books+authors DBIx::Class examples
> but with Moose thrown in?
>
> Thanks!
>
> --
> Doran L. "Fozz" Barton <f...@iodynamics.com>
> Open-source developer, sysadmin, consultant, and all-around geeky dude
>  "Take notice: When this sign is under water, this road is impassable."
>    -- Seen on an Athi River highway
>
>


-- 
Regards,
Mikhail

Reply via email to