message
– Tools for creating messages to be sent to MongoDB
DEPRECATED Tools for creating messages to be sent to MongoDB.
Note
This module is for internal use and is generally not needed by application developers.
Changed in version 3.12: This module is deprecated and will be removed in PyMongo 4.0.
pymongo.message.delete
(collection_name, spec, safe, last_error_args, opts, flags=0, ctx=None)
DEPRECATED Get a delete message.
opts is a CodecOptions. flags is a bit vector that may contain the SingleRemove flag or not:
http://docs.mongodb.org/meta-driver/latest/legacy/mongodb-wire-protocol/#op-delete
Changed in version 3.12: This function is deprecated and will be removed in PyMongo 4.0.
pymongo.message.get_more
(collection_name, num_to_return, cursor_id, ctx=None)
DEPRECATED Get a getMore message.
Changed in version 3.12: This function is deprecated and will be removed in PyMongo 4.0.
pymongo.message.insert
(collection_name, docs, check_keys, safe, last_error_args, continue_on_error, opts, ctx=None)
DEPRECATED Get an insert message.
Changed in version 3.12: This function is deprecated and will be removed in PyMongo 4.0.
pymongo.message.kill_cursors
(cursor_ids)
DEPRECATED Get a killCursors message.
Changed in version 3.12: This function is deprecated and will be removed in PyMongo 4.0.
pymongo.message.query
(options, collection_name, num_to_skip, num_to_return, query, field_selector, opts, check_keys=False, ctx=None)
DEPRECATED Get a query message.
Changed in version 3.12: This function is deprecated and will be removed in PyMongo 4.0.
pymongo.message.update
(collection_name, upsert, multi, spec, doc, safe, last_error_args, check_keys, opts, ctx=None)
DEPRECATED Get an update message.
Changed in version 3.12: This function is deprecated and will be removed in PyMongo 4.0.