BSON (Mongodb v1.0.0) View Source

Functions for encoding and decoding BSON documents.

Link to this section Summary

Functions

Decode iodata to a BSON document.

Encode a BSON document to iodata.

Link to this section Types

Specs

document() ::
  %{required(atom()) => t()}
  | %{required(String.t()) => t()}
  | [{atom(), t()}]
  | [{String.t(), t()}]

Specs

Link to this section Functions

Specs

decode(iodata()) :: document()

Decode iodata to a BSON document.

Specs

encode(document()) :: iodata()

Encode a BSON document to iodata.