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(server) ⇒ Result
Execute the bulk operation.
Instance Method Details
#execute(server) ⇒ Result
Execute the bulk operation.
37 38 39 40 41 42 43 |
# File 'lib/mongo/operation/write/bulk/bulkable.rb', line 37 def execute(server) if server.features.write_command_enabled? execute_write_command(server) else (server) end end |