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

Add DictCursor support #667

Open
KageyamaRuka opened this issue Jun 25, 2021 · 0 comments
Open

Add DictCursor support #667

KageyamaRuka opened this issue Jun 25, 2021 · 0 comments
Labels
api: spanner Issues related to the googleapis/python-spanner-django API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@KageyamaRuka
Copy link

KageyamaRuka commented Jun 25, 2021

Is your feature request related to a problem? Please describe.
when fetched with cursor, it just return tuple list, and that might be inefficient to deal with, sometimes a DictCursor that returns list of Dict[FieldName, value] might be better

Describe the solution you'd like
DictCursor that returns list of Dict[FieldName, value], like pymysql or psycopg
https://pymysql.readthedocs.io/en/latest/modules/cursors.html
https://www.psycopg.org/docs/extras.html

@KageyamaRuka KageyamaRuka added priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Jun 25, 2021
@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/python-spanner-django API. label Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/python-spanner-django API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

1 participant