mongodb-driver v0.6.5 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
Link to this function
decode_header(iolist) View Source
Decodes the header from response of a request sent by the mongodb server
Link to this function
decode_msg(arg) View Source
Link to this function
decode_reply(arg) View Source
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(binary) View Source
Link to this function
decode_sections(arg1, acc) View Source
Link to this function
decode_sequence(arg) View Source
Link to this function
encode(request_id, op) 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