Documentation Home
MySQL Connector/Python Developer Guide
Related Documentation Download this Manual
PDF (US Ltr) - 0.6Mb
PDF (A4) - 0.6Mb
HTML Download (TGZ) - 83.0Kb
HTML Download (Zip) - 95.7Kb

MySQL Connector/Python Developer Guide  /  ...  /  cursor.MySQLCursorBufferedNamedTuple Class

10.6.7 cursor.MySQLCursorBufferedNamedTuple Class

The MySQLCursorBufferedNamedTuple class inherits from MySQLCursor. This class is available as of Connector/Python 2.0.0.

A MySQLCursorBufferedNamedTuple cursor is like a MySQLCursorNamedTuple cursor, but is buffered: After executing a query, it fetches the entire result set from the server and buffers the rows. For information about the implications of buffering, see Section 10.6.1, “cursor.MySQLCursorBuffered Class”.

To get a buffered cursor that returns named tuples, add the buffered argument when instantiating a new named-tuple cursor:

cursor = cnx.cursor(named_tuple=True, buffered=True)

User Comments
User comments in this section are, as the name implies, provided by MySQL users. The MySQL documentation team is not responsible for, nor do they endorse, any of the information provided here.
Sign Up Login You must be logged in to post a comment.