yes I am off topic of db_rewrite_sql(), sorry, but what I am getting at is that a database abstraction layer should encapsulate the SQL altogether, and make sure it generalizes and is not tied to any single SQL dialect.
views is of course on a much higher level, but...
Victor Kane wrote:
> views is the drupal query builder :)
Views is a very specialized query builder, and suitable for many things, but
it's not what's being discussed here.