bsoneach v0.4.1 BSONEach.Reader
Helper module that allows to read and decode documents from IO stream one-by-one.
Summary
Functions
Read and decode BSON document from IO stream.
It returns:
{:ok, document}
- document is parsed successfully.:eof
- when IO stream reached to end of file.{:parse_error, reason}
- in case there was an error while parsing BSON document. Eg.::corrupted_document
.{:error, reason}
- in case IO.binstream returned an error.
Also it will pass all