mongodb-driver v0.5.1 Mongo.Messages View Source

This module encodes and decodes the data from and to the mongodb server. We only support MongoDB >= 3.2 and use op_query with the hack collection "$cmd" Other op codes are deprecated. Therefore only op_reply and op_query are supported.

Link to this section Summary

Functions

Decodes the header from response of a request sent by the mongodb server

Decodes a reply message from the response

Decodes the response body of a request sent by the mongodb server

Link to this section Functions

Decodes the header from response of a request sent by the mongodb server

Decodes a reply message from the response

Link to this function

decode_response(header, iolist) View Source

Decodes the response body of a request sent by the mongodb server

Link to this macro

op_query(args \\ []) View Source (macro)

Link to this macro

op_query(record, args) View Source (macro)

Link to this macro

op_reply(args \\ []) View Source (macro)

Link to this macro

op_reply(record, args) View Source (macro)