brianc / node-postgres-docs

Documentation for node-postgres
https://node-postgres.com
MIT License
97 stars 94 forks source link

pg-query-stream: Add optional Cursor constructor param to QueryStream class #154

Closed mattbishop closed 3 years ago

mattbishop commented 3 years ago

I have a use case where I need to start a Cursor outside of QueryStream but want to use QueryStream to consume the cursor. It would be nice to pass a Cursor instance in the constructor:

Cursor myCursor = fetchACursor()
QueryStream stream = new QueryStream(myCursor, opts)

Thanks for your consideration.

mattbishop commented 3 years ago

Sorry I put this issue in the wrong repo! I got here by clicking the 'Edit on GitHub' button at node-postgres.com

mattbishop commented 3 years ago

Wrong repo. Copied to the right one.