Module: Mongo::Operation::Write::Bulk::Bulkable
Overview
Provides common behavior for bulk write operations. Note that #validate! is not called on operation results because they are merged at a higher level.
Instance Method Summary collapse
-
#execute(context) ⇒ Result
Execute the bulk operation.
Instance Method Details
#execute(context) ⇒ Result
Execute the bulk operation.
37 38 39 40 41 42 43 |
# File 'lib/mongo/operation/write/bulk/bulkable.rb', line 37 def execute(context) if context.features.write_command_enabled? execute_write_command(context) else (context) end end |