Mongodb v0.5.0 BSON 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

Link to this type document() View Source
document() ::
  %{optional(atom()) => BSON.t()} |
  %{optional(String.t()) => BSON.t()} |
  [{atom(), BSON.t()}] |
  [{String.t(), BSON.t()}]

Link to this section Functions

Link to this function decode(iodata) View Source
decode(iodata()) :: document()

Decode iodata to a BSON document.

Link to this function encode(map) View Source
encode(document()) :: iodata()

Encode a BSON document to iodata.