DBIx::Class - Related Tables

Mark Blackman mark at blackmans.org
Tue Oct 7 09:15:06 BST 2008


On 7 Oct 2008, at 09:03, Dave Hodgkinson wrote:

>
> On 7 Oct 2008, at 08:42, Andy Wardley wrote:
>
>> Dave Cross wrote:
>>> This is probably simple,
>>
>> This is the general problem that I have with ORMs.  You have  
>> something
>> which is a fairly straightforward SQL query but can't figure out  
>> how to
>> make the ORM generate the query that you already know you want.
>>
>> It's a bit like using a phrasebook to speak a foreign language.   
>> They're
>> great for ordering a croissant in a cafe, but are ultimately  
>> limited and
>> in some cases, can be counter-productive.
>
>
> Then what's the benefit of an ORM? (general question, not just to  
> you :)

Well, if you have to do a number of operations on data from the DB and  
you
don't want to keep pulling stuff out and then shoving it back in.
Makes for more expressive code *if* the DB data is your primary concern
which it is in most enterprise applications. That's my clumsy answer  
anyway.

-  Mark



More information about the london.pm mailing list