-
Notifications
You must be signed in to change notification settings - Fork 37
Get number of rows? #12
Comments
Yah that's definitely possible - node-postgres (which this consumes) On Mon, Jul 20, 2015 at 5:55 PM, Vitaly Tomilov [email protected]
|
The only thing relevant to the total number of rows I found is within the Result object, which isn't used when streaming data. Therefore, I'm not sure where else to look at... |
@brianc Also, I would be happy to add support for pg-copy-streams, into pg-promise, but it hasn't built successfully for a while. Any chance that you resurrect support for such an otherwise a good library? It seems quite demanded. |
@brianc this one is in zombie mode, but would be very much appreciated |
PRs welcome! |
Would it be difficult to make the library report the number of rows processed, as a parameter of the
end
event?It just seems to be the key information for any app that uses the stream, and no way to find out how many rows have been processed.
At the moment I have to intercept function
_fetch
as shown in the following code, which is quite awkward, though it works:The text was updated successfully, but these errors were encountered: