lib/mongo/operation/shared/write.rb
# Execute the bulk write operation.
#
# @param [ Mongo::Server::Connection ] connection The connection over
#   which to send the operation.
# @param [ Operation::Context ] context The operation context.
#
# @return [ Mongo::Operation::Delete::BulkResult,
#           Mongo::Operation::Insert::BulkResult,
#           Mongo::Operation::Update::BulkResult ] The bulk result.
#
# @since 2.5.2
Execute the bulk write operation.
Execute the bulk write operation .
def bulk_execute(connection, context:)
        Lint.assert_type(connection, Server::Connection)
        if connection.features.op_msg_enabled?
          self.class::OpMsg.new(spec).execute(connection, context: context).bulk_result
        else
          self.class::Command.new(spec).execute(connection, context: context).bulk_result
        end
      end
def bulk_execute ( connection , context : ) Lint . assert_type ( connection , Server :: Connection ) if connection . features . op_msg_enabled? self . class :: OpMsg . new ( spec ) . execute ( connection , context : context ) . bulk_result else self . class :: Command . new ( spec ) . execute ( connection , context : context ) . bulk_result end end
Execute the bulk write operation.
Execute the bulk write operation .
The bulk result.
The bulk result .
 Mongo::Operation::Delete::BulkResult, Mongo::Operation::Insert::BulkResult, Mongo::Operation::Update::BulkResult 
connection
<not_specific>
context
<not_specific>
<not_specific>
context The operation context.
context The operation context .
since
None