Open
Description
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
Labels
No labels