On Sat, Feb 06, 2010 at 04:54:07PM +0100, Petr Jake?? wrote:
> MyTable.select() method results to the
> SELECT my_table.* FROM my_table (or ALL column names are named explicitly)
>
> Is there a way to retrieve just some *columns*, not all of them.
There is the way: .select() (and sqlbuilder.Select) accept a boolean
parameters lazyColumns that does what you want! With lazyColumns=True
.select() only SELECTs IDs, and then attributes will be loaded one by one
or all at once depending on the cacheValues.
Oleg.
--
Oleg Broytman http://phd.pp.ru/ ph...@ph...
Programmers don't die, they just GOSUB without RETURN.
|