Module: Mongo::Operation::Write::Command::Writable
- Includes:
- Limited
- Included in:
- CreateIndex, CreateUser, Delete, DropIndex, Insert, RemoveUser, Update, UpdateUser
- Defined in:
- lib/mongo/operation/write/command/writable.rb
Overview
Provides common behavior for write commands. Assigns an operation id when executed.
Instance Method Summary collapse
-
#execute(server) ⇒ Result
Execute the operation.
Methods included from Limited
Instance Method Details
#execute(server) ⇒ Result
Execute the operation.
37 38 39 40 41 |
# File 'lib/mongo/operation/write/command/writable.rb', line 37 def execute(server) server.with_connection do |connection| connection.dispatch([ (server) ], operation_id) end end |