torndb icon indicating copy to clipboard operation
torndb copied to clipboard

DictCursor can be used in query

Open wingyiu opened this issue 10 years ago • 0 comments

[Row(itertools.izip(column_names, row)) for row in cursor]

The DictCursor returns rows as dictionaries and stores the result set in the client.

http://mysql-python.sourceforge.net/MySQLdb.html

wingyiu avatar Dec 04 '14 08:12 wingyiu