message – Tools for creating messages to be sent to MongoDB
Tools for creating messages to be sent toMongoDB.
Note
This module is for internal use and is generally not needed byapplication developers.
pymongo.message.
delete
(collection_name, spec, safe, last_error_args, opts, flags=0, ctx=None)- Get a delete message.
opts is a CodecOptions. flags is a bit vector that may containthe SingleRemove flag or not:
http://docs.mongodb.org/meta-driver/latest/legacy/mongodb-wire-protocol/#op-delete
pymongo.message.
insert
(collection_name, docs, check_keys, safe, last_error_args, continue_on_error, opts, ctx=None)- Get an insert message.