mongodb-driver v0.5.1 BSON View Source
Functions for encoding and decoding BSON documents.
Link to this section Summary
Link to this section Types
Link to this type
document() View Source
Link to this type
t()
View Source
t()
View Source
t() ::
document()
| String.t()
| atom()
| number()
| boolean()
| BSON.Binary.t()
| BSON.ObjectId.t()
| BSON.Regex.t()
| BSON.JavaScript.t()
| BSON.Timestamp.t()
| [t()]
t() :: document() | String.t() | atom() | number() | boolean() | BSON.Binary.t() | BSON.ObjectId.t() | BSON.Regex.t() | BSON.JavaScript.t() | BSON.Timestamp.t() | [t()]
Link to this section Functions
Link to this function
decode(iodata) View Source
Decode iodata
to a BSON document.
Link to this function
encode(map) View Source
Encode a BSON document to iodata
.