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

capture queryset with column names #101

Open
soheildsh opened this issue Aug 21, 2021 · 4 comments
Open

capture queryset with column names #101

soheildsh opened this issue Aug 21, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@soheildsh
Copy link

I think there should be a way to fetch the query results as an array of dictionaries, which the keys are column names. this has a great use for me and maybe many others. is there any solution for this?
And if there is not would it be ok if I try to contribute something like this to the project?

@ebyhr
Copy link
Member

ebyhr commented Aug 21, 2021

Looks good idea and we are welcome your contribution! As you may already know, some DB-API libraries' have such extension. Please keep in mind the backward compatibility when developing the feature.
https://dev.mysql.com/doc/connector-python/en/connector-python-api-mysqlcursordict.html
https://docs.python.org/3/library/sqlite3.html#sqlite3.Connection.row_factory

@ebyhr ebyhr added the enhancement New feature or request label Aug 21, 2021
@gscteam
Copy link

gscteam commented Sep 21, 2021

is this related to this issue #34 ?

@ebyhr
Copy link
Member

ebyhr commented Sep 21, 2021

@gscteam No, this is enhancement for query results regardless of the type.

@scalame
Copy link

scalame commented Feb 14, 2023

@soheildsh how did you manage to get around this limitation for time being?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

4 participants