mongodb-driver v0.5.2 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

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 function

decode_sections(arg1, acc) View Source

Link to this macro

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

Link to this macro

op_msg(record, args) View Source (macro)

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)

Link to this macro

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

Link to this macro

payload(record, args) View Source (macro)

Link to this macro

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

Link to this macro

section(record, args) View Source (macro)

Link to this macro

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

Link to this macro

sequence(record, args) View Source (macro)