Class: Mongo::Operation::Write::DropIndex
- Inherits:
-
Object
- Object
- Mongo::Operation::Write::DropIndex
- Includes:
- Specifiable, WriteCommandEnabled
- Defined in:
- lib/mongo/operation/write/drop_index.rb
Overview
A MongoDB drop index operation.
Initialization:
param [ Hash ] spec The specifications for the drop.
option spec :index [ Hash ] The index spec to create.
option spec :db_name [ String ] The name of the database.
option spec :coll_name [ String ] The name of the collection.
option spec :index_name [ String ] The name of the index.
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
Instance Method Summary collapse
-
#execute(context) ⇒ Result
Execute the drop index operation.
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
Instance Method Details
#execute(context) ⇒ Result
Execute the drop index operation.
51 52 53 |
# File 'lib/mongo/operation/write/drop_index.rb', line 51 def execute(context) execute_write_command(context) end |