Skip to content

Add a new row type#75

Merged
Changaco merged 2 commits intomasterfrom
new-row-type
Sep 28, 2019
Merged

Add a new row type#75
Changaco merged 2 commits intomasterfrom
new-row-type

Conversation

@Changaco
Copy link
Copy Markdown
Member

@Changaco Changaco commented Sep 27, 2019

This branch adds an alternative to representing query results as namedtuples or dicts.

The new Row class supports both item and attribute lookups and assignments. Unlike namedtuples these hybrid rows are mutable, and they're all instances of a single class.

I tried to submit this upstream, but it didn't go well (psycopg/psycopg2#970).

@Changaco Changaco merged commit 7cbe7f8 into master Sep 28, 2019
@Changaco Changaco deleted the new-row-type branch September 28, 2019 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant