Class: Mongo::Operation::Write::Delete
- Inherits:
-
Object
- Object
- Mongo::Operation::Write::Delete
- Includes:
- Specifiable, GLE, WriteCommandEnabled
- Defined in:
- lib/mongo/operation/write/delete.rb,
lib/mongo/operation/write/delete/result.rb
Overview
If a server with version >= 2.5.5 is selected, a write command operation will be created and sent instead.
A MongoDB delete operation.
Initialization:
param [ Hash ] spec The specifications for the delete.
option spec :delete [ Hash ] The delete document.
option spec :db_name [ String ] The name of the database on which
the delete should be executed.
option spec :coll_name [ String ] The name of the collection on which
the delete should be executed.
option spec :write_concern [ Mongo::WriteConcern ] The write concern
for this operation.
option spec :ordered [ true, false ] Whether the operations should be
executed in order.
option spec :options [Hash] Options for the command, if it ends up being a
write command.
Defined Under Namespace
Classes: Result
Constant Summary
Constants included from Specifiable
Specifiable::BYPASS_DOC_VALIDATION, Specifiable::COLL_NAME, Specifiable::CURSOR_COUNT, Specifiable::CURSOR_ID, Specifiable::CURSOR_IDS, Specifiable::DB_NAME, Specifiable::DELETE, Specifiable::DELETES, Specifiable::DOCUMENTS, Specifiable::INDEX, Specifiable::INDEXES, Specifiable::INDEX_NAME, Specifiable::OPERATION_ID, Specifiable::OPTIONS, Specifiable::READ, Specifiable::READ_CONCERN, Specifiable::SELECTOR, Specifiable::TO_RETURN, Specifiable::UPDATE, Specifiable::UPDATES, Specifiable::USER, Specifiable::USER_NAME, Specifiable::WRITE_CONCERN
Instance Attribute Summary
Attributes included from Specifiable
Method Summary
Methods included from Specifiable
#==, #bypass_document_validation, #coll_name, #cursor_count, #cursor_id, #cursor_ids, #db_name, #delete, #deletes, #documents, #index, #index_name, #indexes, #initialize, #namespace, #operation_id, #options, #ordered?, #read, #read_concern, #selector, #to_return, #update, #updates, #user, #user_name, #write_concern