Module: Mongo::Operation::Find::Builder::Flags Private

Defined in:
build/ruby-driver-master/lib/mongo/operation/find/builder/flags.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Provides behavior for converting Ruby options to wire protocol flags when sending find and related commands (e.g. explain).

Since:

  • 2.0.0

Constant Summary collapse

MAPPINGS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Options to cursor flags mapping.

Since:

  • 2.0.0

{
  :allow_partial_results => [ :partial ],
  :oplog_replay => [ :oplog_replay ],
  :no_cursor_timeout => [ :no_cursor_timeout ],
  :tailable => [ :tailable_cursor ],
  :tailable_await => [ :await_data, :tailable_cursor],
  :await_data => [ :await_data ],
  :exhaust => [ :exhaust ],
}.freeze

Class Method Summary collapse

Class Method Details

.cursor_typeObject

.flagsObject