mongo v0.5.4 Mongo.Response
Receives, decode and parse MongoDB response from the server
Summary
Functions
Decodes an aggregate respsonse
Helper fuction to decode the first document of a bson buffer
Helper fuction to split buffer into documents in binary format
Decodes a command response
Decodes a count respsonse
Decodes a distinct respsonse
Decodes an error respsonse
Decodes a getnonce respsonse
Decodes a group respsonse
Decodes a map-reduce respsonse
Parses a response message
Decodes a success respsonse
Functions
Decodes an aggregate respsonse
Returns {:ok, result} or transfers the error message
Helper fuction to decode the first document of a bson buffer
Decodes a distinct respsonse
Returns {:ok, values} or transfers the error message
Decodes a map-reduce respsonse
Returns {:ok, results} (inline) or :ok or transfers the error message
Parses a response message
If the message is partial, this method makes shure the response is complete by fetching additional messages