nimble_csv icon indicating copy to clipboard operation
nimble_csv copied to clipboard

Count of entries?

Open hopewise opened this issue 7 years ago • 6 comments

Is there a way to get the count of entries in the file?

hopewise avatar May 02 '17 12:05 hopewise

@hopewise you can use the stream function and then perform Enum.count/1. Even though we need to traverse the file to find out the number of entries, we could optimize the code to avoid building binaries. This optimization is not present today.

josevalim avatar May 02 '17 12:05 josevalim

Hey @josevalim is this issue still open as a reminder?

leandrocp avatar Dec 03 '20 18:12 leandrocp

In a way yes, but it is a bit complicated to implement because you cannot simply look at newlines, as the newlines may be part of a column, but it should be doable. :)

josevalim avatar Dec 03 '20 18:12 josevalim

Thanks @josevalim for the hint.

hopewise avatar Apr 21 '21 10:04 hopewise

Hey @hopewise I guess @josevalim said the issue should be left open so we remember to do something about it in the future. I can take a shot at this if you want.

kelvinst avatar Apr 23 '21 12:04 kelvinst

ops, thanks @kelvinst for your note

hopewise avatar Apr 25 '21 11:04 hopewise