Skip to content

Make query results act directly like an array #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

johnfrench3
Copy link
Owner

This is a backwards compatible change to Result that allows the result object to be iterated directly rather than having to access result.rows.

I'm currently writing a minimal compatibility layer for mysql/pg/sqlite3 where I'm going to be able to wrap results in something like this anyways, but since I was already writing it I thought I'd see if there was interest in having it included directly in node-postgres.

@johnfrench3 johnfrench3 requested a review from sifat144 August 20, 2023 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant