Skip to content

Add Support for Returning Query Results as List of Tuples #146

@bymoye

Description

@bymoye

Currently, psqlpy returns query results as a list of dictionaries (e.g., [{"a": "a1", "b": "b1"}, {"a": "a2", "b": "b2"}]). While this format is useful for accessing fields by name, it would be beneficial to also support returning results as a list of tuples (e.g., [("a1", "b1"), ("a2", "b2")]), similar to the default behavior of psycopg2's fetchall() method.

I propose adding an option to configure psqlpy to return query results as a list of tuples.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions