module Mongo::Commands::IsMaster

Overview

isMaster returns a document that describes the role of the mongod instance.

NOTE for more details, please check the official MongoDB documentation.

Extended Modules

Defined in:

cryomongo/commands/replication/is_master.cr

Constant Summary

OS_TYPE = {% if host_flag?(:linux) %} "Linux" {% else %}{% if host_flag?(:darwin) %} "Darwin" {% else %}{% if host_flag?(:win32) %} "Windows" {% else %} "Unknown" {% end %}{% end %}{% end %}

Class Method Summary

Instance Method Summary

Class Method Detail

def self.name #

Instance Method Detail

def command(appname : String | Nil = nil) #

Returns a pair of OP_MSG body and sequences associated with the command and arguments.


def result(bson : BSON) #

Transforms the server result.