message
– Tools for creating messages to be sent to MongoDB¶
Tools for creating messages to be sent to MongoDB.
Note
This module is for internal use and is generally not needed by application developers.
New in version 1.1.2.
-
pymongo.message.
delete
(collection_name, spec, safe, last_error_args, uuid_subtype, options=0)¶ Get a delete message.
-
pymongo.message.
get_more
(collection_name, num_to_return, cursor_id)¶ Get a getMore message.
-
pymongo.message.
insert
(collection_name, docs, check_keys, safe, last_error_args, continue_on_error, uuid_subtype)¶ Get an insert message.
Note
As of PyMongo 2.6, this function is no longer used. It is being kept (with tests) for backwards compatibility with 3rd party libraries that may currently be using it, but will likely be removed in a future release.
-
pymongo.message.
kill_cursors
(cursor_ids)¶ Get a killCursors message.
-
pymongo.message.
query
(options, collection_name, num_to_skip, num_to_return, query, field_selector=None, uuid_subtype=3)¶ Get a query message.
-
pymongo.message.
update
(collection_name, upsert, multi, spec, doc, safe, last_error_args, check_keys, uuid_subtype)¶ Get an update message.