bsoneach v0.3.2 BSONEach.File

This module provides helper functions to correctly open files for BSONEach.

Basically, it contains alias functions to File module with performance-tested modes.

Examples

"sample.bson"
|> BSONEach.File.open

"sample.bson"
|> BSONEach.File.stream

Summary

Functions

Opens the given path

Returns a File.Stream for the given path

Functions

open(path)

Specs

open(File.Path.t) ::
  {:ok, File.res} |
  {:error, File.posix}
open(File.Path.t) ::
  File.Stream.t |
  {:error, String.t}

Opens the given path.

stream(path)

Returns a File.Stream for the given path.