Method: Moped::Protocol::Query#op_code

Defined in:
lib/moped/protocol/query.rb,
lib/moped/protocol/query.rb

#op_codeInteger

Get the code for a query operation.

Examples:

Get the operation code.

query.op_code

Returns:

  • (Integer)

    OP_QUERY operation code (2004).

Since:

  • 1.0.0



22
# File 'lib/moped/protocol/query.rb', line 22

int32 :op_code