Method: Moped::Protocol::Query#flags

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

#flagsArray

The flags for the query. Supported flags are: :tailable, :slave_ok, :no_cursor_timeout, :await_data, :exhaust.

Parameters:

  • flags (Array)

    the flags for this message

Returns:

  • (Array)

    the flags for this message



30
31
32
33
34
# File 'lib/moped/protocol/query.rb', line 30

flags :flags, tailable:          2 ** 1,
slave_ok:          2 ** 2,
no_cursor_timeout: 2 ** 4,
await_data:        2 ** 5,
exhaust:           2 ** 6