You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 19, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 19, 2025. It is now read-only.
when i use databases.Database to connect mysql, how to change tuple result to dict ? #287
``
from aiomysql import cursors
db = databases.Database(mysql_url, min_size=1, max_size=20,cursorclass=cursors.DictCursor)
if will raise a TypeError: row must be a sequence:
return RowProxy(metadata, row, metadata._processors, metadata._keymap)
changed the title [-]how to change mysql result to dict [/-][+]when i use databases.Database to connect mysql, how to change result to dict ?[/+]on Feb 10, 2021
changed the title [-]when i use databases.Database to connect mysql, how to change result to dict ?[/-][+]when i use databases.Database to connect mysql, how to change tuple result to dict ?[/+]on Feb 10, 2021
``
from aiomysql import cursors
db = databases.Database(mysql_url, min_size=1, max_size=20,cursorclass=cursors.DictCursor)
if will raise a TypeError: row must be a sequence:
return RowProxy(metadata, row, metadata._processors, metadata._keymap)