Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DictCursor can be used in query #29

Open
wingyiu opened this issue Dec 4, 2014 · 0 comments
Open

DictCursor can be used in query #29

wingyiu opened this issue Dec 4, 2014 · 0 comments

Comments

@wingyiu
Copy link

wingyiu commented Dec 4, 2014

[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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant