> > 2) A 'columns' keyword to restrict column returns

> This already exists; look at the get_values() function:

Right idea, not quite the complete implementation. 'fields' only
applies to get_values, and the 'fields' kwarg isn't utilized by the sql
query itself. The SQL query still retrieves all columns, and then a
dict(zip()) the results to get a dictionary with the requested subset
of values.

The idea here would be to construct a SELECT that only pulls out the
columns in 'fields'. This isn't of any use for normal use-case
get_list() calls, but it could be useful for populating 'select' or
'tables' kwargs within a get_list() call.

Russ %-)

Reply via email to