[Catalyst] ActiveRecord for Perl

Matt S Trout dbix-class at trout.me.uk
Tue May 22 16:51:15 GMT 2007


On Tue, May 22, 2007 at 05:36:18PM +0200, Adam Bartosik wrote:
> >What would that achieve that passing literal SQL chunks for SELECT, FROM,
> >WHERE etc. wouldn't?
> 
> Readability. Complex SQL statements are more clear to understand than 
> complex dbix "statements" when you are not an author of DBIX ;)
> I can also test it with simple copy&paste to sql console to see how it 
> works, how it is planned / optimized.
> 
> I know it is ORM and database abstraction, I'm theoretically independent 
> from my DB vendor and so on, but it doesn't change the fact it is more 
> complicated, more "noise", more "strange" -opt { qw[col1 col2] } than 
> pure SQL statement.
> 
> And when all this Catalyst/Dbix stuff is so flexible - why I should 
> fight with such approach?

Ok, I can see all of those arguments.

So here's the one big remaining question - why haven't you worked out what
syntax you'd like to see for this feature and started a thread on the
dbix-class list to discuss it? :)

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/             http://www.shadowcatsystems.co.uk/ 



More information about the Catalyst mailing list