Dami Laurent (PJ) said:

> An explicit AST is interesting if we want to perform operations on the
> tree ... but if the only operation is to generate SQL, I don't really
> see the point : chunks of strings should be good enough, passed
> directly from the DWIM API to the SQL layer. For example,
> we can already pass a string "COUNT(DISTINCT foo) AS n_foo" to
> SQL::Abstract, and get back rows with a $row->{n_foo} value : what
> more could be done if we had a more structured syntax tree ?

Transformation of the tree. "Transparent" subqueries by aliasing
conflicting identifiers, automagically fully qualifying column names when
joining and backend-specific optimizations are the first things that cross
my mind :)

-- 
Robert 'phaylon' Sedlacek
Perl Software Developer


_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/

Reply via email to