[Dbix-class] How about a reverse parser script/utility? (Was: Query Building Help)

Matt S Trout dbix-class at trout.me.uk
Mon Aug 14 15:41:23 CEST 2006


Torsten Seemann wrote:
>> Yes, it would be possible. But I'd much rather provide a query syntax for DBIC 
>> that more closely mirrors the SQL syntax. My two current thoughts on this are 
>> via operator overloading -
>>
>> my $this_millenium = FROM $cds_rs WHERE { $_->year >= 2000 & $_->tracks->count 
>>  > 10 };
> 
> Me smells Tangram! :-)

Sure. I've always been rather fond of the Tangram query syntax. Were it not 
GPL-only I'd have had a go at porting Tangram::Expr straight acrosss before now.



More information about the Dbix-class mailing list