|
OpenQuizz
Une application de gestion des contenus pédagogiques
|


Public Member Functions | |
| def | __init__ (self, flags, payload_document) |
| def | raw_response (self, cursor_id=None) |
| def | unpack_response (self, cursor_id=None, codec_options=_UNICODE_REPLACE_CODEC_OPTIONS, user_fields=None, legacy_response=False) |
| def | command_response (self) |
| def | raw_command_response (self) |
| def | more_to_come (self) |
| def | unpack (cls, msg) |
Data Fields | |
| flags | |
| payload_document | |
Static Public Attributes | |
| UNPACK_FROM | |
| OP_CODE | |
| CHECKSUM_PRESENT | |
| MORE_TO_COME | |
| EXHAUST_ALLOWED | |
A MongoDB OP_MSG response message.
| def __init__ | ( | self, | |
| flags, | |||
| payload_document | |||
| ) |
| def command_response | ( | self | ) |
Unpack a command response.
| def more_to_come | ( | self | ) |
Is the moreToCome bit set on this response?
| def raw_command_response | ( | self | ) |
Return the bytes of the command response.
| def raw_response | ( | self, | |
cursor_id = None |
|||
| ) |
| def unpack | ( | cls, | |
| msg | |||
| ) |
Construct an _OpMsg from raw bytes.
| def unpack_response | ( | self, | |
cursor_id = None, |
|||
codec_options = _UNICODE_REPLACE_CODEC_OPTIONS, |
|||
user_fields = None, |
|||
legacy_response = False |
|||
| ) |
Unpack a OP_MSG command response.
:Parameters:
- `cursor_id` (optional): Ignored, for compatibility with _OpReply.
- `codec_options` (optional): an instance of
:class:`~bson.codec_options.CodecOptions`
|
static |
|
static |
| flags |
|
static |
|
static |
| payload_document |
|
static |