Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.
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

Description

@weakeng

``
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)

Activity

  1. 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
  2. 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
  3. mecampbellsoup commented on Feb 28, 2021

    @mecampbellsoup

    @weakeng what makes you think cursorclass is a supported parameter?

  4. locked and limited conversation to collaborators on Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions