On Mon, Mar 17, 2008 at 02:18:31PM +0900, masayuki.takagi wrote:
> i think it would be nice if SQLObject has queryAll-like method which  
> returns the result as generator, not list.
> 
> Does SQLObject have such a interface?

   It doesn't because of two reasons:

1. SQLObject still support Python 2.2; just released 0.10 supports at least
2.3. Generators were added in Python 2.4.
   The next major release that is now the trunk will support Python 2.4.

2. queryAll fetches the results by calling DB API cursor.fetchall(). To
make queryAll a generator one must rewrite the method to at least to use
cursor.fetchmany().

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            [EMAIL PROTECTED]
           Programmers don't die, they just GOSUB without RETURN.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to