View Source Mongo.Messages (mongodb-driver v1.5.0)

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.

Summary

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, binary)

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

msg_header(args \\ [])

View Source (macro)
Link to this macro

msg_header(record, args)

View Source (macro)
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_msg_compressed(args \\ [])

View Source (macro)
Link to this macro

op_msg_compressed(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)