Package MySQLdb :: Module cursors :: Class CursorUseResultMixIn
[hide private]
[frames] | no frames]

Class CursorUseResultMixIn

source code

object --+
         |
        CursorUseResultMixIn
Known Subclasses:
SSCursor, SSDictCursor

This is a MixIn class which causes the result set to be stored in the server and sent row-by-row to client side, i.e. it uses mysql_use_result(). You MUST retrieve the entire result set and close() the cursor before additional queries can be peformed on the connection.

Instance Methods [hide private]
 
_get_result(self) source code
 
fetchone(self)
Fetches a single row from the cursor.
source code
 
fetchmany(self, size=None)
Fetch up to size rows from the cursor.
source code
 
fetchall(self)
Fetchs all available rows from the cursor.
source code
 
__iter__(self) source code
 
next(self) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  _defer_warnings = True
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

fetchmany(self, size=None)

source code 
Fetch up to size rows from the cursor. Result set may be smaller than size. If size is not defined, cursor.arraysize is used.