node-pg-cursor icon indicating copy to clipboard operation
node-pg-cursor copied to clipboard

Make Cursors instances of stream.Readable

Open Ginden opened this issue 6 years ago • 1 comments

Streams are widely supported concept. There are many libraries to operate on streams, manage backpressure, map, filter results, pause them etc.

Moreover, since Node 10 stream.Readable automatically support asynchronous iteration protocol.

Ginden avatar Jul 05 '19 11:07 Ginden

@Ginden i am using node-pg-query-stream for this, it inhertis from Readable and based on cursor. But it does not work for node v12 (but PR exists)

btd avatar Jul 06 '19 14:07 btd