in reply to Re: How treat query elegantly and more?
in thread How treat query elegantly and more?

Please point out, if I'm wrong, but I've read DBIx::Class doc several times, it mention join(left join, inner join etc.) very few.

Like below database design, if DBI, I could simply use join clause to retrieve various of names. how could do that by DBIx::Class?

sale_detailed<id store_id person_id merchant_id datetime .........> store < store_id store_name ........> person< person_id person_name .....> merchant< merchant_id merchant_name .....> .... ....





I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction

Replies are listed 'Best First'.
Re^3: How treat query elegantly and more?
by Your Mother (Archbishop) on Jul 01, 2010 at 17:14 UTC

    You are correct that there is a somewhat steep ramp to using DBIC. :( You have to get your schema first. Today is a bad day for me to do a short tutorial on it or I would.

    The things you can read to help get set-up are–

    It's probably tempting to jump ahead to the join stuff but you'll have a much easier time if you get the basics around schema generation and connection down first. DBIC is difficult to pick up. It took me quite a while but it's really been worth it. Rose::DB is a highly regarded alternative which has better performance but, I'd say, less flexibility and community support. Also worth at least knowing about are Fey and KiokuDB... Viva la Perl5.