class Mongo::Operation::Delete::OpMsg

A MongoDB delete operation sent as an op message.

@api private

@since 2.5.2

Private Instance Methods

message(server) click to toggle source
# File lib/mongo/operation/delete/op_msg.rb, line 38
def message(server)
  section = {  type: 1, payload: { identifier: IDENTIFIER, sequence: send(IDENTIFIER) } }
  Protocol::Msg.new(flags, {}, command(server), section)
end
selector(server) click to toggle source
# File lib/mongo/operation/delete/op_msg.rb, line 32
def selector(server)
  { delete: coll_name,
    Protocol::Msg::DATABASE_IDENTIFIER => db_name,
    ordered: ordered? }
end