module MongoOperation: sig .. end
This module defines the types of operation that are used in MongoDB requests and replies.
exception Unknown_op_code
Raised when dealing with an unknown operation code
type 
| | | OP_REPLY | 
| | | OP_UPDATE | 
| | | OP_INSERT | 
| | | RESERVED | 
| | | OP_QUERY | 
| | | OP_GET_MORE | 
| | | OP_DELETE | 
| | | OP_KILL_CURSORS | 
type of operations allowed in MongoDB
Convert between operation and int32 code
val to_code : t -> int32
convert an operation to an int32
val of_code : int32 -> t
convert an int32 to an operation, Unknwon_op_code will be raised if the code cannot be recognised