bsoneach v0.4.1 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
#|> process_file_here
|> BSONEach.File.close

Summary

Functions

Opens the given path

Functions

close(io)
close(File.io_device) ::
  :ok |
  {:error, File.posix | :badarg | :terminated}

Same as File.close/0.

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

Opens the given path.